Skip to content
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

Do use file-based namespace declarations. #189

Open
MarkMichaelis opened this issue Aug 30, 2021 · 0 comments
Open

Do use file-based namespace declarations. #189

MarkMichaelis opened this issue Aug 30, 2021 · 0 comments
Labels
C# coding guidelines Content related to the C# coding guidelines proposal Items flagged with this are up for discussion to be included in the IntelliTect coding standards

Comments

@MarkMichaelis
Copy link
Member

The only reason to use scoped-based namespace declarations is when there is more than one namespace define in a file. Since this condition should be avoided in production code, I propose the guideline: Do use file-based namespace declarations.

This wording, however, may not be clear enough. Perhaps Do use file-based namespace declarations and avoid scope-based namespace declarations.

I suspect that over time scope-based namespace declarations will disappear except in legacy code.

@Keboo Keboo added C# coding guidelines Content related to the C# coding guidelines proposal Items flagged with this are up for discussion to be included in the IntelliTect coding standards labels Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# coding guidelines Content related to the C# coding guidelines proposal Items flagged with this are up for discussion to be included in the IntelliTect coding standards
Projects
None yet
Development

No branches or pull requests

2 participants