Object-type collections classes are in - System.Collection
Generic collection classes are in - System.Collection.Generic
Specific Collection classes are in - System.Collection.Specialized
Generic interfaces:-
1. IEnumerable<T> - derives from IEnumerable interface
2. ICollection<T>
3. IList<T> - derives form ICollection interface
allows to access the collection with indexer
4. IDictionary<T> - implemented by ICollection interface
5. ILookup<T> - multiples values for a key
6. IComparer<&> - has only compare() function to compare two objects
7. IEqualityComparer<T>
Non-Generic versions of interfaces:-
1. IEnumerable - required if a foreach statement is used with the collection
2. ICollection
3. IList - derives form ICollection interface
allows to access the collection with indexer
4. IDictionary - implemented by ICollection interface
has key and value pair
Generic collection classes are in - System.Collection.Generic
Specific Collection classes are in - System.Collection.Specialized
Generic interfaces:-
1. IEnumerable<T> - derives from IEnumerable interface
2. ICollection<T>
3. IList<T> - derives form ICollection interface
allows to access the collection with indexer
4. IDictionary<T>
5. ILookup<T>
6. IComparer<&>
7. IEqualityComparer<T>
Non-Generic versions of interfaces:-
1. IEnumerable - required if a foreach statement is used with the collection
2. ICollection
3. IList - derives form ICollection interface
allows to access the collection with indexer
4. IDictionary - implemented by ICollection interface
has key and value pair
No comments:
Post a Comment