public static MultiSet <T> operator +(MultiSet <T> first, MultiSet <T> second) { if (first == null || second == null) { throw new ArgumentNullException(); } MultiSet <T> result = new MultiSet <T>(); foreach (var item in first) { result.Add(item); } foreach (var item in second) { result.Add(item); } return(result); }
public MultiSetEnumerator(MultiSet <T> ts) { this.currentObj = ts; }