CodeTypeDeclaration.TypeParameters 屬性

定義

取得型別宣告的型別參數。

public:
 property System::CodeDom::CodeTypeParameterCollection ^ TypeParameters { System::CodeDom::CodeTypeParameterCollection ^ get(); };
public System.CodeDom.CodeTypeParameterCollection TypeParameters { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public System.CodeDom.CodeTypeParameterCollection TypeParameters { get; }
member this.TypeParameters : System.CodeDom.CodeTypeParameterCollection
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.TypeParameters : System.CodeDom.CodeTypeParameterCollection
Public ReadOnly Property TypeParameters As CodeTypeParameterCollection

屬性值

CodeTypeParameterCollection,包含型別宣告的型別參數。

屬性

備註

泛型型別宣告包含一或多個稱為類型參數的未指定型別。 類型參數名稱代表泛型宣告主體內的類型。 例如,類別的 List<T> 泛型宣告包含型別參數 T

如需泛型的詳細資訊,請參閱 .NET Framework 類別庫中的泛型

適用於

另請參閱