borakasmer/File_Scoped_Types
In C# 11, a file-scoped type refers to a top-level type that confines its scope and visibility to the file where we declare it. This is achieved using the file keyword, acting as a type modifier. The file modifier restricts a top-level type’s scope and visibility to the file in which it’s declared.
C#