Skip to content

Documentation of System.Diagnostics.Switch should properly describe how to implement a derived class. #2929

Open
@johanneshoehn

Description

@johanneshoehn

All existing derived classes of System.Diagnostics.Switch save their state in SwitchSetting and override OnValueChanged to have SwtichSetting properly reflect the corresponding setting.

The documentation of System.Diagnostics.Switch however describes the process writing an inherited class as:

When inheriting from this class, you must implement the SwitchSetting method

The problem here is that SwitchSetting isn't even virtual.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.DiagnosticsuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions