public static FromCommandListHandler ( |
||
commandHandlerInterfaceType | ||
commandListHandler | object | |
Résultat |
public static CommandHandlerWrapper FromCommandListHandler(Type commandHandlerInterfaceType, object commandListHandler)
{
var populateMethod = commandHandlerInterfaceType.GetMethod("Populate");
var runMethod = commandHandlerInterfaceType.GetMethod("Run");
return new CommandHandlerWrapper(commandListHandler, null, populateMethod, runMethod);
}