Method | Description | |
---|---|---|
ConvertToType ( object arg ) : |
Convert an arg to a Type.
|
|
Invoke ( |
Invoke a method.
|
|
IsType ( object arg ) : bool |
Determines if an arg represents a Type. If true, ConvertToType will be called to get the Type. Used for generic methods.
|
Method | Description | |
---|---|---|
ChangeType ( |
Helper method to Convert an arg to a parameter type. This method in turn calls System.Convert.ChangeType().
|
|
CreateResultTuple ( IList |
Create a tuple to return method call results. The results include the method return value and omitted [out] parameter values.
|
|
IsUnwrapArgsNeeded ( |
Check if unwrap args is needed. If false, UnwrapArgs/WrapResult become NOP. The default implementation returns true if there is any [out] params.
|
|
TryReturnArg ( |
Try to rematch an arg with a parameter when returning from a method call. This is used to return values in [ref] args. This method is expected to do the same processing as TryConvertArg and return the same value. If a [ref] parameter is present, return the argValue in the arg.
|
Method | Description | |
---|---|---|
TryConvertArg ( |
||
TryGetOptionalArg ( |
||
TryInvoke ( |
||
UnwrapArgs ( |
||
WrapResult ( |
protected static ChangeType ( |
||
parameterInfo | The expected parameter info. | |
arg | object | The arg value. |
return | object |
public ConvertToType ( object arg ) : |
||
arg | object | An arg object. |
return |
protected CreateResultTuple ( IList | ||
allResults | IList | The results list. |
return | object |
public Invoke ( |
||
method | The method info. | |
target | object | The target object to invoke the method. |
args | object | Arguments for the method call. |
return | object |
protected IsUnwrapArgsNeeded ( |
||
parameterInfos | All the parameterinfo. | |
return | bool |
protected abstract TryReturnArg ( |
||
parameterInfo | The current expected parameter info. | |
arg | object | A passed in arg. |
argValue | object | The arg value after the method call. |
return | bool |