/// <summary> /// Merge PropertyFilter /// </summary> /// <param name="mergeFilter">PropertyFilter to merge</param> public void Merge(PropertyFilter mergeFilter) { EqualTo = EqualTo.Concat(mergeFilter.EqualTo.Where(s => !EqualTo.Contains(s))).ToList(); StartWith = StartWith.Concat(mergeFilter.StartWith.Where(s => !StartWith.Contains(s))).ToList(); Contain = Contain.Concat(mergeFilter.Contain.Where(s => !Contain.Contains(s))).ToList(); PropertySetsEqualTo = PropertySetsEqualTo.Concat(mergeFilter.PropertySetsEqualTo.Where(s => !PropertySetsEqualTo.Contains(s))).ToList(); }
/// <summary> /// Copy values from passed PropertyFilter /// </summary> /// <param name="copyFilter">PropertyFilter to copy</param> public void Copy(PropertyFilter copyFilter) { EqualTo.Clear(); EqualTo = EqualTo.Concat(copyFilter.EqualTo).ToList(); StartWith.Clear(); StartWith = StartWith.Concat(copyFilter.StartWith).ToList(); Contain.Clear(); Contain = Contain.Concat(copyFilter.Contain).ToList(); PropertySetsEqualTo.Clear(); PropertySetsEqualTo = PropertySetsEqualTo.Concat(copyFilter.PropertySetsEqualTo).ToList(); }