Friday 16 September 2011

Generic Types in C#.net


Generic Types

Classes and structs can be defined with one or more type parameters. Client code supplies the type when it creates an instance of the type. For example The List <(Of <( T >)>) class in the System.Collections.Generic namespace is defined with one type parameter. Client code creates an instance of a List<string> or List<int> to specify the type that the list will hold. For more information

No comments:

Post a Comment

Please Give Your Valuable Comments on this Topic

Archives