Introducing C# 10: File-scoped namespaces

added by DotNetKicks
8/12/2021 1:01:52 PM

711 Views

C# is still evolving and C# 10 proposes a new feature : file_scoped namespaces. As its name suggests, the namespace declared in a file (without braces, but whose instruction ends with a semicolon) will apply to all elements declared in the same file.


0 comments