File scoped types new in C# 11

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?

Leave a Reply

Your email address will not be published. Required fields are marked *