State different generic collections defined in System.Collections.Generic Namespace ?
Different generic collections defined in System.Collections.Generic Namespace are listed below :
- List<T> - Represents a strongly typed list of objects that can be accessed by index.
- Dictionary<TKey, TValue> - Represents a collection of keys and values
- HashSet< T> - Represents a set of values.
- LinkedList< T> - Represents a doubly linked list.
- Queue<T> - Represents a first-in, first-out collection of objects.
- Stack<T> - Represents a variable size last-in-first-out (LIFO) collection of instances of the same arbitrary type.
- SortedDictionary<TKey, TValue> - Represents a collection of key/value pairs that are sorted on the key
- SortedList<TKey, TValue> -Represents a collection of key/value pairs that are sorted by key
- SortedSet<T> - Represents a collection of objects that is maintained in sorted order.
No comments:
Post a Comment