Skip to content

Page For ServiceContainer says class cannot be inherited #12235

@greenstack

Description

@greenstack

Type of issue

Other (describe below)

Description

The source code for ServiceContainer and the documentation page for the class show that the class isn't declared with the sealed keyword. The constructors are public as well, so at present, the class can be inherited (even if it's not supposed to be).

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.design.servicecontainer?view=net-10.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.ComponentModel.Design/ServiceContainer.xml

Document Version Independent Id

3db6b5cb-e743-ab7c-e196-1ae18499d20f

Platform Id

4a07f598-a923-f9be-44d1-0d5863b477ba

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions