예제 #1
0
 private void RevokeWord(string s)
 => LocaleBlacklist.Remove(s.ToLower());
예제 #2
0
 public bool IsBannedWord(string s)
 => LocaleBlacklist.Contains(s.ToLower());
예제 #3
0
 private void BanWord(string s)
 => LocaleBlacklist.Add(s.ToLower());
예제 #4
0
 private IEnumerable <string> GetMatchingBannedWords(string s)
 => LocaleBlacklist.Where(x => s.Contains(x));