Current .Net Version: 2.0.50727
Home
Articles
C# & .Net Framework Reference
Practice C# Online
XML Web Services
RSS Feeds
Code Snippets
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog




ROR XML Info.
C# & .Net Framework Reference
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

 
COPYRIGHT/DISCLAIMER | CONTACT US