private void AddMissing(CommandConfig command) { foreach (CommandConfig c in Commands) { if (c.Name == command.Name) { return; } } Commands.Add(command); }
private void AddMissing(CommandConfig command, List <CommandConfig> addedCommands) { foreach (CommandConfig c in Commands) { if (c.Name == command.Name) { addedCommands.Add(c); return; } } Commands.Add(command); addedCommands.Add(command); }
public static int CommandComparer(CommandConfig a, CommandConfig b) { return a.Name.CompareTo(b.Name); }
private void AddMissing(CommandConfig command) { foreach (CommandConfig c in Commands) { if (c.Name == command.Name) return; } Commands.Add(command); }
public static int CommandComparer(CommandConfig a, CommandConfig b) { return(a.Name.CompareTo(b.Name)); }
private void AddMissing(CommandConfig command, List<CommandConfig> addedCommands) { foreach (CommandConfig c in Commands) { if (c.Name == command.Name) { addedCommands.Add(c); return; } } Commands.Add(command); addedCommands.Add(command); }