public void Dispose() { if (!_completed) { _items.Add(this); } }
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));