示例#1
0
        public static bool ContainsAnyKeyword(this Snippet snippet, IEnumerable <string> keywords)
        {
            foreach (string keyword in keywords)
            {
                if (snippet.ContainsKeyword(keyword))
                {
                    return(true);
                }
            }

            return(false);
        }
示例#2
0
        public static bool ContainsAnyKeyword(this Snippet snippet, params string[] keywords)
        {
            foreach (string keyword in keywords)
            {
                if (snippet.ContainsKeyword(keyword))
                {
                    return(true);
                }
            }

            return(false);
        }