refactor: use file scoped namespaces #52
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR replaces traditional brace-scoped namespace declarations with C# 10 file-scoped namespaces across the entire codebase. All namespace blocks have been converted to the simplified
namespace X.Y.Z;
form and commonusing
directives have been moved to the top of each file for consistency and readability.Bullet points:
namespace
s instead of typicalnamespace
s: We identified numerous files where the old brace-scopednamespace Foo { ... }
pattern was used. Each was converted to the file-scoped syntaxnamespace Foo;
which reduces indentation, improves visual clarity, and aligns with modern C# conventions. Allusing
statements were consolidated immediately below the namespace declaration, and redundant braces were removed to streamline file structure.