CommonConversion 结构
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示转换的公共、与语言无关的元素。
public value class CommonConversion
public struct CommonConversion
public readonly struct CommonConversion
type CommonConversion = struct
Public Structure CommonConversion
- 继承
-
CommonConversion
注解
我们保留将来更改此结构的权利。
属性
| 名称 | 说明 |
|---|---|
| ConstrainedToType |
类型参数,运行时类型将用于解析虚拟调用 MethodSymbol(如果有)。 如果 MethodSymbol 静态解析或为 null,则为 Null。 |
| Exists |
如果转换存在,则返回 true,如目标语言所定义。 |
| IsIdentity |
如果转换是标识转换,则返回 true。 |
| IsImplicit |
如果转换是隐式(C#)或扩大转换(VB),则返回 true。 |
| IsNullable |
如果转换为可为 null 的转换,则返回 true。 |
| IsNumeric |
如果转换是数值转换,则返回 true。 |
| IsReference |
如果转换是引用转换,则返回 true。 |
| IsUnion |
如果转换是联合转换,则返回 true。 |
| IsUserDefined |
如果转换是用户定义的转换,则返回 true。 |
| MethodSymbol |
返回用于执行用户定义转换(如果 IsUserDefined 为 true)或执行联合转换(如果 IsUnion 为 true)的方法。 否则,返回 null。 |