public ComandManager() { _command = new List<Command>(); _dataManager = new DataReturnManager(); _dataReturners = new List<object>(); Assembly asm = Assembly.GetExecutingAssembly(); foreach (Type t in asm.GetTypes().Where<Type>(t => t.IsSubclassOf(typeof(Command)) && t != typeof(Commands.MemoryCommand))) { _command.Add((Command)Activator.CreateInstance(t)); } DataReturnEvent += _dataManager.ReceiveReturnedData; }
public ComandManager() { _command = new List <Command>(); _dataManager = new DataReturnManager(); _dataReturners = new List <object>(); Assembly asm = Assembly.GetExecutingAssembly(); foreach (Type t in asm.GetTypes().Where <Type>(t => t.IsSubclassOf(typeof(Command)) && t != typeof(Commands.MemoryCommand))) { _command.Add((Command)Activator.CreateInstance(t)); } DataReturnEvent += _dataManager.ReceiveReturnedData; }