■
Source Code
The CustomNonGenericCollection project is located under the Chapter 10 directory.
The System.Collections.Generic Namespace
Generic types are found sprinkled throughout the .NET base class libraries; however, the
System.Collections.Generic namespace is chock-full of them (as its name implies). Like its non-
generic counterpart (System.Collections), the System.Collections.Generic namespace contains
numerous class and interface types that allow you to contain subitems in a variety of containers.
Not surprisingly, the generic interfaces mimic the corresponding nongeneric types in the
System.Collections namespace:
• ICollection
• IComparer
• IDictionary
• IEnumerable
• IEnumerator
• IList
Do'stlaringiz bilan baham: |