File-scoped namespace declaration
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:
namespace X.Y.Z
{
//more code
}
We need those curly braces around all of our classes before we have anything else written we have at least 4 lines of code already. With file scoped namespaces, we can have the namespace defined without the need for the scoped braces:
namespace X.Y.Z;
//more code
Enjoy Coding…
A sub-domain as the name suggests is a pre-text after a domain name. Medium.com is a domain name, its sub-domain will be “xyz.medium.com” My name is Serhan Ekinci, and if I chose to get a sub-domain, it was “serhanekinci.medium.com”. Depending upon the availability you also can choose your own subdomain if you can be quick enough. When you get a sub-domain, this will means a whole new blog experience.
Cons of having a shiny Sub-domain?
The only disadvantage of having a subdomain on Medium is that it may affect your search engine optimization negatively.