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