Example #1
0
 public void Dispose()
 {
     if (!_completed)
     {
         _items.Add(this);
     }
 }
Example #2
0
 public static TItem AddAndGet <T, TItem>(this IAtomicCollection <T> items, TItem item) where TItem : T
 {
     items.Add(item);
     return(item);
 }
 public static void Add <T>(this IAtomicCollection <CollectionTransaction <T> > items, T item) => items.Add(new CollectionTransaction <T>(items, item));