Hi ALL ,
IF I have Retrieve million records , i Choose ONLY ILIST That is LIST Objects .
Why Because it Represents a collection of objects that can be accessed by in INDEX .
And also Built in quick sort algorithm for fast data sorting and retrieval
LIST:
Represent a strongly typed list of objects that can be accessed by index .Methods are sort,search and manipulate .
DICTIONARY :
Represent a collection of key and value pairs .
Both are GENERICS COLLECTIONS
ICOLLECTION is an interface for collection of similar objects .
List is simply a set of items
and Dictionary is a set of key-value pairs.
List persist order of the items, Dictionary does not
List allow fast access by index
List persist order of the items, Dictionary does not
List allow fast access by index
List support built in QuickSort algorithm for fast data sorting.
IF I have Retrieve million records , i Choose ONLY ILIST That is LIST Objects .
Why Because it Represents a collection of objects that can be accessed by in INDEX .
And also Built in quick sort algorithm for fast data sorting and retrieval
LIST:
Represent a strongly typed list of objects that can be accessed by index .Methods are sort,search and manipulate .
DICTIONARY :
Represent a collection of key and value pairs .
Both are GENERICS COLLECTIONS
IDictionary
is for key->value maps . ICollection
is for sets of similar objects.ICOLLECTION is an interface for collection of similar objects .
List is simply a set of items
and Dictionary is a set of key-value pairs.
Comments
Post a Comment