`.editorconfig`: Warn about CA2009: Do not call `ToImmutableCollection` on an `ImmutableCollection` value for performance reasons
MODIFY
.editorconfig
.editorconfig
@@ -252,6 +252,9 @@ dotnet_diagnostic.CA2016.severity = warning
# CA2000: Dispose objects before losing scope
dotnet_diagnostic.CA2000.severity = warning
+# CA2009: Do not call ToImmutableCollection on an ImmutableCollection value
+dotnet_diagnostic.CA2009.severity = warning
+
# CA1825: Avoid zero-length array allocations
dotnet_diagnostic.CA1825.severity = warning

`.editorconfig`: Warn about CA2009: Do not call `ToImmutableCollection` on an `ImmutableCollection` value for performance reasons