/// <summary> /// Occupies a the given console command name. /// </summary> internal static void OccupyConsoleCommand(string name) { lock (OccupiedConsoleCommandNames) { OccupiedConsoleCommandNames.Add(name); } }
/// <summary> /// Returns true, if the given console command name is occupied or not. /// </summary> /// <param name="name">The name to be checked</param> internal static bool IsConsoleCommandOccupied(string name) { lock (OccupiedConsoleCommandNames) { return(OccupiedConsoleCommandNames.ContainsIgnoreCase(name)); } }