public void AddInclusionString(string p)
 {
     if (IncludedMatchStrings == null)
     {
         IncludedMatchStrings = new List <string>();
     }
     IncludedMatchStrings.Add(p);
 }
 public void RemoveInclusionString(string p)
 {
     if ((IncludedMatchStrings != null) && (IncludedMatchStrings.Contains(p)))
     {
         IncludedMatchStrings.Remove(p);
         if (IncludedMatchStrings.Count == 0)
         {
             IncludedMatchStrings = null;
         }
     }
     else
     {
         throw new InvalidOperationException("It is invalid to remove an inclusion string that is not in the list");
     }
 }