Generics Sample (C#)
Full Name:
Generics Sample (C#)
Short Name:
Generics Sample (C#)
Type of Entity:
C#
Abstract:
This sample shows how to create a custom generic list class with a single type parameter, and how to implement IEnumerable to enable foreach iteration over the contents of the list. The sample also shows how client code creates an instance of the class by specifying a type argument, and how constraints on the type parameter enable additional operations to be performed on the type arguments.
MSDN Source URL:
http://msdn2.microsoft.com/ms173233.aspx