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)
118
public T Target =>
_instance
?? throw new ObjectDisposedException(nameof(ReferenceCountedDisposable<T>));
131
=> TryAddReferenceImpl(
_instance
, _boxedReferenceCount);
201
if (
_instance
== null)
210
instanceToDispose =
_instance
;
239
var instance = reference.
_instance
;