"File-Scoped Namespace Declarations Before and After"

// Before
namespace BenBowen.Blog.FileScopedNamespaceDemo {
	public class User {

	}
}



// After
namespace BenBowen.Blog.FileScopedNamespaceDemo;

public class User {

}


Code snippet taken from "Two Decades of C#: A Reference - C# 10".