public void AddExclusionString(string textToExclude) { if (ExcludedMatchStrings == null) { ExcludedMatchStrings = new List <string>(); } ExcludedMatchStrings.Add(textToExclude); }
public void RemoveExclusionString(string textToExclude) { if (ExcludedMatchStrings != null) { if (ExcludedMatchStrings.Contains(textToExclude)) { ExcludedMatchStrings.Remove(textToExclude); } } if (ExcludedMatchStrings.Count == 0) { ExcludedMatchStrings = null; } }