Exemplo n.º 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();
 }
Exemplo n.º 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();
 }