[]
        
(Showing Draft Content)

GrapeCity.Enterprise.Data.Expressions.Evaluation.DynamicDispatch.Invoke

Invoke Method

Invoke(string, object, object[])

Invokes an instance method on a given object using dynamic dispatch.

Declaration
public static object Invoke(string methodName, object target, object[] args)
Parameters
Type Name Description
string methodName

The name of the method to invoke.

object target

The object on which to invoke the method. Must not be null.

object[] args

An array of arguments to pass to the method. If no arguments are needed, pass null or an empty array.

Returns
Type Description
object

The value returned by the invoked method, if any. If the method has no return value, null is returned.

Exceptions
Type Condition
ArgumentNullException

Thrown if target is null.