Type.IsSpecialName 属性


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

 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.