private void AddMissing(CommandConfig command, List <CommandConfig> addedCommands) { foreach (var 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, List<CommandConfig> addedCommands) { foreach (var 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); }
void AddMissing(CommandConfig command) { Commands.Add(command); }