Method | Description | |
---|---|---|
GetCustomType ( ) : |
Gets the custom Type.
|
|
TryBinaryOperation ( |
Provides implementation for binary operations. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as addition and multiplication.
|
|
TryConvert ( |
Provides implementation for type conversion operations. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations that convert an object from one type to another.
|
|
TryInvoke ( |
Provides the implementation for operations that invoke an object. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as invoking an object or a delegate.
|
|
TryInvokeMember ( |
Provides the implementation for operations that invoke a member. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.
|
|
operator ( ) : dynamic |
Pipe argument (left side) into curried function (right side)
|
Method | Description | |
---|---|---|
Curry ( object target, int totalArgCount = null ) : System |
public TryBinaryOperation ( |
||
binder | Provides information about the binary operation. The binder.Operation property returns an |
|
arg | object | The right operand for the binary operation. For example, for the sum = first + second statement, where first and second are derived from the DynamicObject class, |
result | object | The result of the binary operation. |
return | bool |
public TryConvert ( |
||
binder | Provides information about the conversion operation. The binder.Type property provides the type to which the object must be converted. For example, for the statement (String)sampleObject in C# (CType(sampleObject, Type) in Visual Basic), where sampleObject is an instance of the class derived from the |
|
result | object | The result of the type conversion operation. |
return | bool |
public TryInvoke ( |
||
binder | Provides information about the invoke operation. | |
args | object | The arguments that are passed to the object during the invoke operation. For example, for the sampleObject(100) operation, where sampleObject is derived from the |
result | object | The result of the object invocation. |
return | bool |
public TryInvokeMember ( |
||
binder | Provides information about the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is an instance of the class derived from the |
|
args | object | The arguments that are passed to the object member during the invoke operation. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is derived from the |
result | object | The result of the member invocation. |
return | bool |