CodeTypeDeclaration.TypeParameters Property

Gets the type parameters for the type declaration.

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

[ComVisibleAttribute(false)]
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft