Skip to content

Change disposed exceptions to use ObjectDisposedException.ThrowIf #43503

Closed
@JamesNK

Description

@JamesNK

Similar to #43482

APIs are available to simplify throwing ObjectDisposedException:
https://github.com/dotnet/runtime/blob/a54a823ece1094dd05b7380614bd43566834a8f9/src/libraries/System.Private.CoreLib/src/System/ObjectDisposedException.cs#L49-L73

Consider updating code to use ObjectDisposedException.ThrowIf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsclean-upThis issue is internal clean-up and has no effect on public APIs or expected behaviorstask

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions