Skip to content

Confusing terminology in SafeHandle example code #12959

Description

@Wallby

Describe the issue or suggestion

As this is a part of .NET that is very basic, for new programmers to understand. The wording:

this SafeHandle instance "owns" the handle

seems clumsy. It would be more clear if it instead doesn't conflate instantiation with implementation. Something like:

informing the base class that the instance of this SafeHandle implementation "owns" the handle

https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.safehandle?view=net-10.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions