BinaryOp.GetOperator(IReflect, IReflect) 方法

定义

根据所请求的运算和操作数的数据类型来确定要调用的最佳方法。Determines the best method to call based on the operation that is requested and the data types of the operands.

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 System::Reflection::MethodInfo ^ GetOperator(System::Reflection::IReflect ^ ir1, System::Reflection::IReflect ^ ir2);
protected System.Reflection.MethodInfo GetOperator (System.Reflection.IReflect ir1, System.Reflection.IReflect ir2);
member this.GetOperator : System.Reflection.IReflect * System.Reflection.IReflect -> System.Reflection.MethodInfo
Protected Function GetOperator (ir1 As IReflect, ir2 As IReflect) As MethodInfo

参数

ir1
IReflect

第一个操作数的数据类型。The data type of the first operand.

ir2
IReflect

第二个操作数的数据类型。The data type of the second operand.

返回

MethodInfo

要依据操作数调用的推荐方法。The recommended method to call on the operands.

适用于

另请参阅