예제 #1
0
 public static collection <T> getInstance()
 {
     if (instance == null)
     {
         instance = new collection <T>();
     }
     return(instance);
 }
예제 #2
0
        public collection <T> Merge(collection <T> second)
        {
            collection <T> table = new collection <T>();

            foreach (var oneitem in second.getItems())
            {
                if (!(this.attend(oneitem)))
                {
                    table.addItem(oneitem);
                }
            }
            return(table);
        }