Skip to content

.NET codebase should always explicitly list access modifiers. #217

@mpiroc

Description

@mpiroc

In .NET, if a symbol has no explicit access modifiers, it defaults to the most private allows for that symbol (internal for namespace members, private for everything else). We currently rely on this behavior and omit access modifiers wherever possible.

However, we are switching to the .NET Core Coding Style Guide for .NET style. The guide specifies:

  1. We always specify the visibility, even if it's the default (e.g. private string _foo not string _foo). Visibility should be the first modifier (e.g. public abstract not abstract public).

Metadata

Metadata

Assignees

No one assigned

    Labels

    language/dotnetRelated to .NET bindings (C#, F#, ...)p1styleIssues related to coding style

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions