 | ReflectionUtilsCallMethod Method (Object, String, Object) |
Calls a method on an object dynamically.
This version doesn't require specific parameter signatures to be passed.
Instead parameter types are inferred based on types passed. Note that if
you pass a null parameter, type inferrance cannot occur and if overloads
exist the call may fail. if so use the more detailed overload of this method.
Namespace:
Koden.Utils
Assembly:
Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntaxpublic static Object CallMethod(
Object instance,
string method,
params Object[] parms
)
Public Shared Function CallMethod (
instance As Object,
method As String,
ParamArray parms As Object()
) As Object
public:
static Object^ CallMethod(
Object^ instance,
String^ method,
... array<Object^>^ parms
)
static member CallMethod :
instance : Object *
method : string *
parms : Object[] -> Object
Parameters
- instance
- Type: SystemObject
Instance of object to call method on - method
- Type: SystemString
The method to call as a stringToTypedValue - parms
- Type: SystemObject
any variable number of parameters.
Return Value
Type:
Object
object
See Also