Exemple #1
0
        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);
        }
Exemple #2
0
 public MultiSetEnumerator(MultiSet <T> ts)
 {
     this.currentObj = ts;
 }