◆ CreateActionFromMethodInfoAndInstance()

static Action CreateActionFromMethodInfoAndInstance ( this MethodInfo  methodInfo,
object  instance 
)
static
Parameters
methodInfomust represent a parameterless function, that is a member of object's type.
instanceinstance of the object that will be the context of the function when executed.
Returns
a delegate that can invoke the provided function, in the context of the provided object.