12 references to DisposePattern
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (12)
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (12)
6128{DisposePattern("protected virtual ", "C", "public void ")}
6178{DisposePattern("protected virtual ", "C", "void System.IDisposable.")}
6237{DisposePattern("protected virtual ", "C", "void System.IDisposable.", gcPrefix: "System.")}
6311{DisposePattern("protected virtual ", "C", "public void ")}
6343{DisposePattern("protected virtual ", "C", "void IDisposable.")}
7281{DisposePattern("protected virtual ", "Program", "public void ")}
7304{DisposePattern("protected virtual ", "Program", "void IDisposable.")}
7383{DisposePattern("private ", "Program", "void IDisposable.")}
7406{DisposePattern("protected virtual ", "Program", "public void ", disposeField: "disposedValue1")}
7428{DisposePattern("protected virtual ", "Program", "public void ", disposeField: "_disposedValue")}
7651{{DisposePattern("protected virtual ", "C", "public void ")}}
7704{{DisposePattern("protected virtual ", "C", "void IDisposable.")}}