Skip to content

Do use file-based namespace declarations. #189

Open

Description

@MarkMichaelis

The only reason to use scoped-based namespace declarations is when there is more than one namespace define in a file. Since this condition should be avoided in production code, I propose the guideline: Do use file-based namespace declarations.

This wording, however, may not be clear enough. Perhaps Do use file-based namespace declarations and avoid scope-based namespace declarations.

I suspect that over time scope-based namespace declarations will disappear except in legacy code.

Activity

  1. added
    C# coding guidelines
    proposal
    on Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C# coding guidelinesproposal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions