2 writes to _storage
Test.Utilities (2)
TemporarySet`1.cs (2)
31Interlocked.Exchange(ref _storage, null)?.Free(cancellationToken); 39storage = Interlocked.CompareExchange(ref _storage, newStorage, null) ?? newStorage;
7 references to _storage
Test.Utilities (7)
TemporarySet`1.cs (7)
27=> new(_storage ?? EmptyHashSet); 36if (_storage is not { } storage) 61if (_storage is not { } storage) 72if (_storage is not { } storage) 80if (_storage is not { } storage) 88return new Enumerator((_storage ?? EmptyHashSet).GetEnumerator()); 93return (_storage ?? EmptyHashSet).AsEnumerable();