The General Form of a Generic Class


The generics syntax shown in the preceding examples can be generalized. Here is the syntax for declaring a generic class:

 class class-name<type-param-list> { // ...

Here is the syntax for declaring a reference to a generic class:

 class-name<type-arg-list> var-name =       new class-name<type-arg-list>(cons-arg-list);




C# 2.0(c) The Complete Reference
C# 2.0: The Complete Reference (Complete Reference Series)
ISBN: 0072262095
EAN: 2147483647
Year: 2006
Pages: 300

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net