Skip to content

Confusing description on DerivedClass #15864

Closed
@stcmz

Description

@stcmz

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:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions