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。 |