AvalonStudio.Extensibility.Commands.CommandHandlerWrapper.FromCommandListHandler C# (CSharp) Method

FromCommandListHandler() public static method

public static FromCommandListHandler ( Type commandHandlerInterfaceType, object commandListHandler ) : CommandHandlerWrapper
commandHandlerInterfaceType System.Type
commandListHandler object
return CommandHandlerWrapper
		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);
		}