示例#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);
 }