public void Add(Command c) { var ch = c as CommandHeirarchyElement; if (ch.Parent != null) throw new InvalidOperationException("Command has already been inserted into the hierarchy!"); c.Parent = this; Commands.Add(c); }
protected Command(string name, Command other) : this(name, other.Description, other._defaultSelfAuth, other._defaultTargetAuth, other.Hide) { }
public CommandAlias(string name, Command other) : base(name, other) { _other = other; }