ImplictCType
01 Syntax
Microsoft.VisualBasic.Scripting.Runtime.ImplictCType
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetOperatorMethod | 1 | 直接使用GetMethod方法仍然会出错??如果目标类型是继承类型,基类型也有一个收缩的操作符的话,会爆出目标不明确的错误 vbnet type.GetMethod(op_Explicit, NarrowingOperator) |
| GetCTypeOperator | 1 | get ctype operator function for cast fromType to ctypeTo. |
| GetNarrowingOperator | 2 | |
| GetWideningOperator | 2 |
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| operatorType | 1 | 2070 = SpecialName |
| op_Explicit | 1 | x -> out |
| op_Implicit | 1 | in -> x |
04 Members
直接使用GetMethod方法仍然会出错??如果目标类型是继承类型,基类型也有一个收缩的操作符的话,会爆出目标不明确的错误
type.GetMethod(op_Explicit, NarrowingOperator)Parameters
| Name | Type | Description |
|---|---|---|
obj | TypeInfo | - |
Returns
函数找不到会返回Nothing
GetCTypeOperator(
Type, Type)get ctype operator function for cast fromType to ctypeTo.
Parameters
| Name | Type | Description |
|---|---|---|
fromType | Type | - |
ctypeTo | Type | - |
Returns
this function returns nothing if the ctype operator is not found
operatorType
2070 = SpecialName
op_Explicit
x -> out
op_Implicit
in -> x
GetNarrowingOperator()
GetWideningOperator()
GetNarrowingOperator(
Type)GetWideningOperator(
Type)