Click here to Skip to main content
15,914,905 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi i want to know what are the ways to collect the collection of datas from table. I know Arraylist,List, XpCollection. is there any other ways?
Posted
Comments
Joezer BH 20-Feb-13 4:45am    
There are many ways, but choosing a solution depends on your requirements or needs.
What are they?
sencsk 20-Feb-13 5:18am    
Can u list out the ways?

1 solution

Hello Sencsk,

Each collection (or generic collection, concurrent collection etc) has it's own purposes, strengths and weaknesses.

Without specifications on your needs, I'd be offering from dictionary to array.
If you just want a survey on collections, here's a try:

IList interface is for collections of values. Here is the list of collections that implement it:

System.Array
System.Collections.ArrayList
System.Collections.Specialized.StringCollection

The interface IDictionary is for collections of (Key, Value) pairs. Here is the list of collections that implement it:

System.Collections.Hashtable
System.Collections.Specialized.ListDictionary
System.Collections.SortedList
System.Collections.Specialized.HybridDictionary

Other collections derived from ICollection are:

System.Collections.BitArray

System.Collections.Stack
System.Collections.Queue
System.Collections.Specialized.NameValueCollection
Then there is System.Collections.Specialized.StringDictionary that implements just IEnumerable and there is also System.Collections.Specialized.BitVector32 tha's a collection of bit/Boolean.

Cheers,
Edo
 
Share this answer
 
v2
Comments
sencsk 20-Feb-13 6:22am    
Nice Edo Tzumer.
sencsk 20-Feb-13 6:23am    
Hi do u have idea abouth this issue
http://www.codeproject.com/Questions/544565/Howplustoplustrackpluscurrentplusdragplusandplusdr
Joezer BH 20-Feb-13 6:25am    
link is broken :frown:
sencsk 20-Feb-13 6:32am    
This issue
How to track current drag and drop fields from field list

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900