C#

C#

Made by DeepSource

Consider declaring only 1 namespace per file CS-R1034

Anti-pattern
Major

Namespaces are used to organize classes and control the scope of class and method names in larger projects. Having more than 1 namespace per file increases the complexity and affects the overall code readability and navigation. It is therefore recommended that you have a single namespace per file.

Reference