Skip to content

Commit 3733893

Browse files
authored
Merge pull request #4075 from sharwell/file-scoped-namespaces
Update SA1516 documentation for file-scoped namespaces
2 parents 673de60 + 9e4aca5 commit 3733893

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/SA1516.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public event EventHandler SomeEvent
5555

5656
In the example above, the add and remove of the event need to be separated by a blank line because the add is multiline.
5757

58+
When using C# 10 file-scoped namespaces, the `namespace` declaration should be followed by a blank line before any `using`, `extern alias`, or type declarations.
59+
5860
## How to fix violations
5961

6062
To fix a violation of this rule, add a blank line between the adjacent elements.

0 commit comments

Comments
 (0)