2 writes to _instance
Microsoft.CodeAnalysis.Workspaces (2)
ReferenceCountedDisposable.cs (2)
100_instance = instance ?? throw new ArgumentNullException(nameof(instance)); 216_instance = null;
5 references to _instance
Microsoft.CodeAnalysis.Workspaces (5)
ReferenceCountedDisposable.cs (5)
118public T Target => _instance ?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<T>)); 131=> TryAddReferenceImpl(_instance, _boxedReferenceCount); 203if (_instance == null) 212instanceToDispose = _instance; 241var instance = reference._instance;