Exemple #1
0
        public Lots <T> Intersection(Lots <T> item)
        {
            Lots <T> ts = new Lots <T>();

            foreach (var i in item.list)
            {
                if (Contains(i))
                {
                    ts.Add(i);
                }
            }
            return(ts);
        }
Exemple #2
0
        public Lots <T> Union(Lots <T> item)
        {
            Lots <T> ts = new Lots <T>(list);

            foreach (var i in item.list)
            {
                if (!Contains(i))
                {
                    ts.Add(i);
                }
            }
            return(ts);
        }