Esempio n. 1
0
        public static bool IsAny(this ServerCommand serverCommand, params Command[] commands)
        {
            if (commands == null || commands.Length == 0)
                return false;

            foreach (Command command in commands)
            {
                if (serverCommand.Is(command))
                    return true;
            }

            return false;
        }
Esempio n. 2
0
        public static bool IsAny(this ServerCommand serverCommand, params CommandInfo[] commandInfoList)
        {
            if (commandInfoList == null || commandInfoList.Length == 0)
                return false;

            foreach (CommandInfo commandInfo in commandInfoList)
            {
                if (serverCommand.Is(commandInfo))
                    return true;
            }

            return false;
        }