public static bool ContainsAnyKeyword(this Snippet snippet, IEnumerable <string> keywords) { foreach (string keyword in keywords) { if (snippet.ContainsKeyword(keyword)) { return(true); } } return(false); }
public static bool ContainsAnyKeyword(this Snippet snippet, params string[] keywords) { foreach (string keyword in keywords) { if (snippet.ContainsKeyword(keyword)) { return(true); } } return(false); }