public virtual IEnumerable <Command> GetCommands(CommandBag commandBag) { Type commandType = typeof(Command); return(from type in commandType.Assembly.GetTypes() where commandType.IsAssignableFrom(type) && !type.IsAbstract select(Command) Activator.CreateInstance(type, commandBag)); }
public IncludeCommand(CommandBag commandBag) : base(commandBag) { }