File scoped types are new in C#11 and allow us to create types whose visibility is scoped to the source file in which it is declared.
What do you think about this new C# feature?

You might also be interested in...
Using aliases in C# to provide shorthand references to types or namespacesIn C# we can use aliases to provide shorthand references to types or namespaces. Aliases can be useful to tidy … Continue reading Using aliases in C# to provide shorthand...
Entity Framework Core 6 now scaffolds Nullable Reference Types (NRTs) usage into generated models
In Entity Framework Core 6 when using the database first approach Nullable Reference Types (NRTs) usage will now be scaffolded … Continue reading Entity Framework Core 6 now scaffolds Nullable...
Customizing SQL Server column types when using Entity Framework Core code first
In Entity Framework when we’re using the code first approach EF will examine our classes and using a defined mapping … Continue reading Customizing SQL Server column types when using...
How to format only your modifications on save (and not the whole file) in VS Code
The Format On Save option in Visual Studio Code is very helpful for enforcing code styles… however it can be … Continue reading How to format only your modifications on...
Common appSettings file for all projects in a solution
Many solution structures look a bit like below. This means that if some code in for instance MYSOFTWARE.APPLICATIONSERVICES requires access … Continue reading Common appSettings file for all projects in...