public IsGlobalCommand ( Command cmd ) : bool | ||
cmd | Command | |
return | bool |
public bool IsGlobalCommand(Command cmd)
{
Command[] GLOBAL_COMMANDS = new Command[] {Command.GET_ALL_VARS, Command.GET_PROFILER_DATA, Command.GET_STATS};
return Array.FindIndex(GLOBAL_COMMANDS, (s) =>
{
return cmd == s;
}) >= 0;
}