TypedConstant 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示常數值,做為自訂屬性的引數。
public value class TypedConstant : IEquatable<Microsoft::CodeAnalysis::TypedConstant>
public struct TypedConstant : IEquatable<Microsoft.CodeAnalysis.TypedConstant>
public readonly struct TypedConstant : IEquatable<Microsoft.CodeAnalysis.TypedConstant>
type TypedConstant = struct
Public Structure TypedConstant
Implements IEquatable(Of TypedConstant)
- 繼承
-
TypedConstant
- 實作
屬性
| IsNull |
如果常數代表 Null 參考,則為 True。 |
| Kind |
常數的種類。 |
| Type |
ITypeSymbol傳回常數的 ,如果無法判斷類型 (錯誤,則傳回 null) 。 |
| Value |
非陣列常數的值。 |
| Values |
陣列的值 TypedConstant 。 |
方法
| Equals(Object) |
表示常數值,做為自訂屬性的引數。 |
| Equals(TypedConstant) |
表示常數值,做為自訂屬性的引數。 |
| GetHashCode() |
表示常數值,做為自訂屬性的引數。 |
擴充方法
| ToCSharpString(TypedConstant) |
會傳回代表目前 TypedConstant 的 System.String。 |
| ToVisualBasicString(TypedConstant) |
會傳回代表目前 TypedConstant 的 System.String。 |