AGS.Plugin.Lua.InvokeLua.util_iskeyword C# (CSharp) Метод

util_iskeyword() публичный статический Метод

public static util_iskeyword ( string checkWord ) : bool
checkWord string
Результат bool
        public static bool util_iskeyword(string checkWord)
        {
            if (reservedWordCheck == null)
            {
                string[] reservedWords =
                    new string[] {
                        "and",      "break",    "do",   "else",     "elseif",
                        "end",      "false",    "for",  "function", "if",
                        "in",       "local",    "nil",  "not",      "or",
                        "repeat",   "return",   "then", "true",     "until",    "while"
                    };
                reservedWordCheck = new Dictionary<string,bool>();
                foreach (string word in reservedWords)
                {
                    reservedWordCheck[word] = true;
                }
            }
            return reservedWordCheck.ContainsKey(checkWord);
        }
InvokeLua