CodeTypeDeclaration.TypeParameters Property


Gets the type parameters for the type declaration.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public CodeTypeParameterCollection TypeParameters { get; }

Property Value

Type: System.CodeDom.CodeTypeParameterCollection

A CodeTypeParameterCollection that contains the type parameters for the type declaration.

A generic type declaration contains one or more unspecified types known as type parameters. A type parameter name stands for the type within the body of the generic declaration. For example, the generic declaration for the List<T> class contains the type parameter T.

For more information on generics, see Generics in the .NET Framework Class Library (C# Programming Guide).

.NET Framework
Available since 2.0
Return to top