TypeBuilder.IsGenericParameter 属性

定义

获取一个值,该值指示当前类型是否是泛型类型参数。Gets a value indicating whether the current type is a generic type parameter.

public:
 virtual property bool IsGenericParameter { bool get(); };
public override bool IsGenericParameter { get; }
member this.IsGenericParameter : bool
Public Overrides ReadOnly Property IsGenericParameter As Boolean

属性值

如果当前 TypeBuilder 对象表示泛型类型参数,则为 true;否则为 falsetrue if the current TypeBuilder object represents a generic type parameter; otherwise, false.

注解

备注

发出代码时,泛型类型参数由 GenericTypeParameterBuilder 对象而不是 TypeBuilder 对象表示。When emitting code, a generic type parameter is represented by a GenericTypeParameterBuilder object rather than by a TypeBuilder object.

适用于