Closed
Description
The section of Implementing the dispose pattern for a derived class doesn't mention why the pattern is to be applied.
IMHO, at least two understandings are possible:
- because the derived class itself uses some unmanaged resources. That means if otherwise, there is no reason to apply the dispose pattern in the derived class.
- because the base class implements IDisposable. If so, all subclasses of a disposable base class need to apply the dispose pattern.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 572ef6c6-5066-4a14-76a0-c3fb4b62e604
- Version Independent ID: 9c754da1-c234-fb12-580b-0fcf9ffe2c20
- Content: Implementing a Dispose method
- Content Source: docs/standard/garbage-collection/implementing-dispose.md
- Product: dotnet
- Technology: dotnet-standard
- GitHub Login: @BillWagner
- Microsoft Alias: dotnetcontent
Metadata
Metadata
Assignees
Labels
No labels