//set union public static VALL operator +(VALL L1, VALL L2) { VALL L = VALL.Clone(L1); foreach (VAL v in L2.list) { L.list.Add(VAL.Clone(v)); } return(L); }
//set complmentary public static VALL operator -(VALL L1, VALL L2) { VALL L = VALL.Clone(L1); for (int i = 0; i < L1.list.Count; i++) { if (L2.list.Contains(L1.list[i])) { L.list.Remove(L1.list[i]); } } return(L); }