-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File scoped namespaces #1700
base: main
Are you sure you want to change the base?
File scoped namespaces #1700
Conversation
FYI @AndrewKeepCoding |
I did. 🙂 |
048d735
to
5f4ff16
Compare
@@ -90,6 +90,9 @@ csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion | |||
# IDE0016: Null check can be simplified | |||
csharp_style_throw_expression = true:suggestion | |||
|
|||
# IDE0161: Convert to file-scoped namespace | |||
csharp_style_namespace_declarations = file_scoped:warning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this needs to be a warning? I don't see any danger in one or the other form.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm following the way taken by CommunityToolkit Gallery and AI Dev Gallery. It's better this way to keep consistency.
Are you planning to add a .git-blame-ignore-revs file for this PR? |
5b1c533
to
3b20189
Compare
@Marv51 You are right. Thanks. |
Description
This PR will switch C# files from block-scoped namespaces to file-scoped namespaces.
Closes #1689.
Motivation and Context
Improves readability.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes