CodeMemberMethod::TypeParameters Property

 

Gets the type parameters for the current generic method.

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

public:
[ComVisibleAttribute(false)]
property CodeTypeParameterCollection^ TypeParameters {
	CodeTypeParameterCollection^ get();
}

Property Value

Type: System.CodeDom::CodeTypeParameterCollection^

A CodeTypeParameterCollection that contains the type parameters for the generic method.

A generic method 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.

The following code example shows the use of the TypeParameters property to add two type parameters to the CodeMemberMethod printMethod. This example is part of a larger example provided for the CodeTypeParameter class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: