Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: Delegate CreateDelegate(object, MethodInfo)

  • Declared in: RT.Util.Ut

Declaration

public static Delegate CreateDelegate(
    object firstArgument,
    MethodInfo method
)

Summary

Creates a delegate using Action<,*> or Func<,*> depending on the number of parameters of the specified method.

Parameters

objectfirstArgument Object to call the method on, or null for static methods.
MethodInfomethod The method to call.