What’s new C#
Seems little but it has been a useful touch for reusabilty.
As with many of the recent changes in C#9 and upcoming C#10, this change is designed to reduce “noise” in our code and make C# more readable. If you have written C#, you will recognise the format for defining the namespace our code is in:
We need this around all of our classes before we have anything else written we have atleast 4 lines of code. With file scoped namespaces, we can have the namespace defined without the need for the scoped braces: