-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some templates' internal members are not promoted to public #457
Comments
You could set the internal template members always to
|
True. That would be the simplest fix. However I dislike defining public members in an internal class because it gives the false impression or at least the possibility that the members are public. In code reviews where I see members added or changed with |
We were only promoting members in templates whose declaring types explicitly specified a visibility modifier. Fixes #457
It turns out we already had the promotion code, but it had a filter on it that caused it to miss promotion of some of them. |
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
andFailed
, consuming these members in any dependent project is impossible, unlessInternalsVisibleTo
is set.We should promote
internal
members from templates topublic
when the NativeMethods.json containspublic: true
.The text was updated successfully, but these errors were encountered: