Ejemplo n.º 1
0
 /// <summary>
 /// Occupies a the given console command name.
 /// </summary>
 internal static void OccupyConsoleCommand(string name)
 {
     lock (OccupiedConsoleCommandNames)
     {
         OccupiedConsoleCommandNames.Add(name);
     }
 }
Ejemplo n.º 2
0
 /// <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));
     }
 }