IT Community - Software Programming, Web Development and Technical Support

Convert Object to Arraylist and Arraylist to Object

This is a discussion on Convert Object to Arraylist and Arraylist to Object within the C# Programming forums, part of the Software Development category; Object to Arraylist: ArrayList a = new ArrayList(YourObjectArrayHere); Arraylist to Object: MyClass[] myClassArray = (MyClass[])myArrayList.ToArray(typeof(MyClass))...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-08-2007, 03:26 AM
raja raja is offline
D-Web Trainee
 
Join Date: May 2007
Posts: 34
raja is on a distinguished road
Post Convert Object to Arraylist and Arraylist to Object

Object to Arraylist:
ArrayList a = new ArrayList(YourObjectArrayHere);

Arraylist to Object:
MyClass[] myClassArray = (MyClass[])myArrayList.ToArray(typeof(MyClass))
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert a text string into a Date object. itbarota HTML, CSS and Javascript Coding Techniques 2 02-12-2008 06:37 AM
Which is best Vector or ArrayList? leoraja8 Java Programming 7 09-25-2007 12:05 AM
Need Help: convert string to unknown class object c#? a.deeban C# Programming 0 08-16-2007 05:18 AM
Difference between Array and ArrayList leoraja8 Java Programming 1 05-11-2007 04:06 AM
Arraylist leoraja8 Java Programming 1 05-11-2007 03:47 AM


All times are GMT -7. The time now is 05:29 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0