Skip to content

Conversation

@jpobst
Copy link
Contributor

@jpobst jpobst commented Feb 21, 2020

Context #509.

We have never used explicit private modifiers on class members due to the Mono Coding Guidelines, as private is the default. However, when working with DIM on interfaces members, the default is public. This results in our plumbing members like _members and static Delegate cb_DoSomething; being exposed as part of the interface's public API.

This commit makes private interface members explicitly private.

@jonpryor jonpryor merged commit 4f47ec8 into master Feb 21, 2020
@jonpryor jonpryor deleted the private-dim branch February 21, 2020 18:09
jonpryor pushed a commit that referenced this pull request Feb 24, 2020
Context: #509

We have never used explicit `private` modifiers on class members due
to the [Mono Coding Guidelines][0], as `private` is the default.
However, when working with Default Interface Methods on interfaces
members, the default is `public`.  This results in our plumbing
members like `_members` and `static Delegate cb_DoSomething;` being
exposed as part of the interface's public API.

This commit makes private interface members explicitly `private`.

[0]: https://www.mono-project.com/community/contributing/coding-guidelines/
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants