Skip to content

Commit 31197c7

Browse files
author
Ron Petrusha
authored
Corrected disposed pattern (#910)
1 parent d371656 commit 31197c7

File tree

1 file changed

+1
-1
lines changed
  • snippets/csharp/VS_Snippets_CLR/conceptual.disposable/cs

1 file changed

+1
-1
lines changed

snippets/csharp/VS_Snippets_CLR/conceptual.disposable/cs/derived1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void WriteFileInfo()
4848
bool result = WriteFile(safeHandle, output, output.Length, out bytesWritten, IntPtr.Zero);
4949
}
5050

51-
protected new virtual void Dispose(bool disposing)
51+
protected override void Dispose(bool disposing)
5252
{
5353
if (disposed) return;
5454

0 commit comments

Comments
 (0)