Skip to content

Use file-scoped namespaces #473

Description

@MitchRazga

C# 10 added file-scoped namespaces, which allow you to declare that every type within a file belongs to that namespace.
This effectively removes 1 level of nesting/indentation from every file.
Read more here
Since this repo targets multiple TFMs we need to set the LangVersion explicitly so it does not choose the default eg. C# 7.3.

Proposal
Set <LangVersion>latest</LangVersion> per .csproj or in a Directory.Build.props

Additional context
File-scoped namespaces is now standard in many .NET repos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions