C# Class AttachedCommandBehavior.EventHandlerGenerator

Generates delegates according to the specified signature on runtime
Datei anzeigen Open project: dotob/moni Class Usage Examples

Public Methods

Method Description
CreateDelegate ( Type eventHandlerType, MethodInfo methodToInvoke, object methodInvoker ) : Delegate

Generates a delegate with a matching signature of the supplied eventHandlerType This method only supports Events that have a delegate of type void

Method Details

CreateDelegate() public static method

Generates a delegate with a matching signature of the supplied eventHandlerType This method only supports Events that have a delegate of type void
public static CreateDelegate ( Type eventHandlerType, MethodInfo methodToInvoke, object methodInvoker ) : Delegate
eventHandlerType System.Type
methodToInvoke System.Reflection.MethodInfo The method to invoke
methodInvoker object The object where the method resides
return System.Delegate