protected void Init (MethodInfo method, CommandMethodAttribute attr) { // Don't assign the method if there is already one assigned (maybe from a subclass) if (this.Method == null) { this.Method = method; CommandId = CommandManager.ToCommandId (attr.CommandId); } }
public CommandMethodInfo (MethodInfo method, CommandMethodAttribute attr) { Init (method, attr); }