2 writes to _instance
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
100_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 214_instance = null;
5 references to _instance
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (5)
118public T Target => _instance ?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<T>)); 131=> TryAddReferenceImpl(_instance, _boxedReferenceCount); 201if (_instance == null) 210instanceToDispose = _instance; 239var instance = reference._instance;