ReflectionUtils.CallMethod

Calls a method on an object dynamically. This version requires explicit specification of the parameter type signatures.

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

Return Value

object

Parameters

instance
Instance of object to call method on

method
The method to call as a stringToTypedValue

parameterTypes
Specify each of the types for each parameter passed. You can also pass null, but you may get errors for ambiguous methods signatures when null parameters are passed

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