Skip to content

Proposal: File scoped namespaces #137

@bomzj

Description

@bomzj

Spec: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-10.0/file-scoped-namespaces.md

How it looks now:

using System;

namespace Company.Project
{
    public class Product
    {        
        ...
    }
}

Why do we need to nest our class definition in namespace ? Why not to remove extra nesting ?
Isn't that better ?

namespace Company.Project
using System;

public class Product
{ 
    ...
}

LDM history:

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions