nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / ImplictCType

ImplictCType

Full name Microsoft.VisualBasic.Scripting.Runtime.ImplictCType Assembly Microsoft.VisualBasic.Runtime Members 9

01 Syntax

Microsoft.VisualBasic.Scripting.Runtime.ImplictCType

02 Methods

NameOverloadsSummary
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

NameOverloadsSummary
operatorType 1 2070 = SpecialName
op_Explicit 1 x -> out
op_Implicit 1 in -> x

04 Members

method GetOperatorMethod #
GetOperatorMethod(TypeInfo, Type, String)

直接使用GetMethod方法仍然会出错??如果目标类型是继承类型,基类型也有一个收缩的操作符的话,会爆出目标不明确的错误

 type.GetMethod(op_Explicit, NarrowingOperator)
Parameters
NameTypeDescription
objTypeInfo

-

Returns

函数找不到会返回Nothing

method GetCTypeOperator #
GetCTypeOperator(Type, Type)

get ctype operator function for cast fromType to ctypeTo.

Parameters
NameTypeDescription
fromTypeType

-

ctypeToType

-

Returns

this function returns nothing if the ctype operator is not found

field operatorType #
operatorType

2070 = SpecialName

field op_Explicit #
op_Explicit

x -> out

field op_Implicit #
op_Implicit

in -> x

method GetNarrowingOperator #
GetNarrowingOperator()
method GetWideningOperator #
GetWideningOperator()
method GetNarrowingOperator overload 2 #
GetNarrowingOperator(Type)
method GetWideningOperator overload 2 #
GetWideningOperator(Type)