/// <summary> /// Intersection /// </summary> /// <param name="value"></param> public override void Multiply(BaseType value) { var valueSet = value.ToSet(); rep.RemoveAll(x => !valueSet.Contains(x)); OnChanged(); }
/// <summary> /// Union /// </summary> /// <param name="value"></param> public override void Add(BaseType value) { rep.AddRange(value.ToSet().AsEnumerable().Where(x => !Contains(x))); OnChanged(); }