Add code quality rule (CA1829: Use Length/Count property instead of Enumerable.Count method)
MODIFY
.editorconfig
.editorconfig
@@ -245,3 +245,6 @@ csharp_style_pattern_matching_over_as_with_null_check = true:error
# CA2016: Forward the 'CancellationToken' parameter to methods that take one
dotnet_diagnostic.CA2016.severity = warning
+
+# CA1829: Use Length/Count property instead of Count() when available
+dotnet_diagnostic.CA1829.severity = warning

Add code quality rule (CA1829: Use Length/Count property instead of Enumerable.Count method)