Skip to content

Commit fd341a9

Browse files
committed
Update .editorconfig for C# coding style preferences
Enhanced C# coding standards in the .editorconfig file. Key changes include preference for top-level statements, encouragement of primary constructors, and mandatory braces for control statements. Additionally, simple using statements are suggested, namespace declarations are set to file-scoped, and method group conversion is silenced. Expression-level preferences have been refined, favoring simple default expressions and inlined variable declarations, while disallowing deconstructed variable declarations.
1 parent b0b8e38 commit fd341a9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ csharp_prefer_braces = true:silent
131131
csharp_prefer_simple_using_statement = true:suggestion
132132
csharp_style_namespace_declarations = file_scoped:suggestion
133133
csharp_style_prefer_method_group_conversion = true:silent
134-
csharp_prefer_system_threading_lock = true:suggestion
135134

136135
# Expression-level preferences
137136
csharp_prefer_simple_default_expression = true:suggestion

0 commit comments

Comments
 (0)