예제 #1
0
        void RegistrateUnsafe(Type type, CommandAttribute attribute)
        {
            var sketch = new CommandSketch(attribute, type, () => (ICommand)Activator.CreateInstance(type));

            this.Registrate(sketch);
        }
예제 #2
0
 void Registrate(Type type, CommandAttribute attribute)
 {
     ReflectionTools.ThrowIfItIsNotValidCommand(type);
     RegistrateUnsafe(type, attribute);
 }