Skip to content

Commit d95e2a9

Browse files
committed
fixed up some replacements
1 parent 6581943 commit d95e2a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/code-quality/ca1063-implement-idisposable-correctly.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ Examine your code and determine which of the following resolutions will fix this
6262

6363
- Remove the finalizer from your type, override Dispose(bool disposing), and put the finalization logic in the code path where 'disposing' is false.
6464

65-
- Remove Dispose(), override Dispose(bool disposing), and put the dispose logic in the code path where 'disposing' is true.
65+
- Override Dispose(bool disposing), and put the dispose logic in the code path where 'disposing' is true.
6666

6767
- Make sure that Dispose() is declared as public and [sealed](/dotnet/csharp/language-reference/keywords/sealed).
6868

6969
- Rename your dispose method to **Dispose** and make sure that it's declared as public and [sealed](/dotnet/csharp/language-reference/keywords/sealed).
7070

7171
- Make sure that Dispose(bool) is declared as protected, virtual, and unsealed.
7272

73-
- Modify your finalize method so that it calls Dispose(true), then calls GC.SuppressFinalize on the current object instance (`this`, or `Me` in Visual Basic), and then returns.
73+
- Modify Dispose() so that it calls Dispose(true), then calls <xref:System.GC.SuppressFinalize%2A> on the current object instance (`this`, or `Me` in Visual Basic), and then returns.
7474

75-
- Modify your finalize method so that it calls Dispose(false) and then returns.
75+
- Modify your finalizer so that it calls Dispose(false) and then returns.
7676

7777
- If you create an unsealed type that declares and implements the <xref:System.IDisposable> interface, make sure that the implementation of <xref:System.IDisposable> follows the pattern that is described earlier in this section.
7878

0 commit comments

Comments
 (0)