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