Type.IsSpecialName Type.IsSpecialName Type.IsSpecialName Type.IsSpecialName Property

定義

取得值,表示類型是否具有需要特殊處理的名稱。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.

適用於

另請參閱