private void RegisterCommand(CustomCommand command) { if (command.Expression.IsValid) { ExpressionParser.AddCommand(command.Name, new ExpressionCommand(command.Expression)); command.IsRegistered = true; } }
private void Register() { if (!string.IsNullOrEmpty(Name)) { ExpressionParser.AddCommand(Name, this); } _registeredName = Name; }