Type.IsSpecialName 属性

定义

获取一个值,该值指示该类型是否具有需要特殊处理的名称。Gets a value indicating whether the type has a name that requires special handling.

public:
 property bool IsSpecialName { bool get(); };
public bool IsSpecialName { get; }
member this.IsSpecialName : bool
Public ReadOnly Property IsSpecialName As Boolean

属性值

如果该类型具有需要特殊处理的名称,则为true ;否则为 falsetrue if the type has a name that requires special handling; otherwise, false.

实现

注解

以或开头的名称包含下划线字符()、属性访问器和运算符重载方法是可能需要某些编译器特殊处理的类型的示例。Names that begin with or contain an underscore character (), property accessors, and operator overloading methods are examples of types that might require special treatment by some compilers.

如果当前Type表示构造泛型类型,则此属性应用于构造该类型的泛型类型定义。If the current Type represents a constructed generic type, this property applies to the generic type definition from which the type was constructed. 例如,如果Type当前表示MyGenericType<int>MyGenericType(Of Integer)在 Visual Basic 中),则此属性的值由确定MyGenericType<T>For example, if the current Type represents MyGenericType<int> (MyGenericType(Of Integer) in Visual Basic), the value of this property is determined by MyGenericType<T>.

如果当前Type表示泛型类型或泛型方法的定义中的类型参数,则此属性始终返回falseIf the current Type represents a type parameter in the definition of a generic type or generic method, this property always returns false.

适用于

另请参阅