Binary operator invoker
BinaryOperator
01 Syntax
Microsoft.VisualBasic.Scripting.Runtime.BinaryOperator
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 2 | |
| MatchLeft | 1 | args op me.(参数在左边) |
| MatchRight | 1 | me op args.(参数在右边) |
| InvokeSelfLeft | 1 | 参数在右边 |
| InvokeSelfRight | 1 | 参数在左边 |
| ToString | 1 | |
| Match | 1 | |
| CreateOperator | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| Name | 1 | The name of this binary operator |
04 Members
#ctor(
MethodInfo())Parameters
| Name | Type | Description |
|---|---|---|
[overloads] | MethodInfo() | 重名的运算符函数方法 |
#ctor(
String, MethodInfo())可以通过继承MethodInfo类型来自定义函数,再使用这个操作符对象应用于脚本运行时环境之中
Parameters
| Name | Type | Description |
|---|---|---|
name$ | String | - |
methods | MethodInfo() | - |
MatchLeft(
Type)args op me.(参数在左边)
Parameters
| Name | Type | Description |
|---|---|---|
type | Type | - |
MatchRight(
Type)me op args.(参数在右边)
Parameters
| Name | Type | Description |
|---|---|---|
type | Type | - |
InvokeSelfLeft(
Object, Object, Object)参数在右边
Parameters
| Name | Type | Description |
|---|---|---|
self | Object | - |
obj | Object | - |
result | Object | - |
InvokeSelfRight(
Object, Object, Object)参数在左边
Parameters
| Name | Type | Description |
|---|---|---|
obj | Object | - |
self | Object | - |
result | Object | - |
Name
The name of this binary operator
ToString()
Match(
Type, Int32)CreateOperator(
MethodInfo())