ReflectionUtils.CallMethod

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.

public static object CallMethod(object instance,
	string method,
	Object[] parms)

Return Value

object

Parameters

instance
Instance of object to call method on

method
The method to call as a stringToTypedValue

parms
any variable number of parameters.

Overloads:


See also:

Class ReflectionUtils

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic