Skip to content

Some templates' internal members are not promoted to public #457

@AArnott

Description

@AArnott

Discussed in #456

Originally posted by AliveDevil November 25, 2021
I don't see any benefit of internalizing ThrowOnFailure: https://github.com/microsoft/CsWin32/blob/main/src/Microsoft.Windows.CsWin32/templates/HRESULT.cs#L43-L62

Same with Succeeded and Failed, consuming these members in any dependent project is impossible, unless InternalsVisibleTo is set.

We should promote internal members from templates to public when the NativeMethods.json contains public: true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions