From efb45212d6ce69e8c25505632649db59e33ef46b Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Mon, 25 Mar 2024 15:03:41 -0400 Subject: [PATCH] Avoid IDE030X suggestions for collection expressions that would catch semantics/perf --- .editorconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.editorconfig b/.editorconfig index 2d2860549c8f7a..7bbf4ec5b35e3b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -92,6 +92,7 @@ dotnet_style_readonly_field = true:suggestion # Expression-level preferences dotnet_style_object_initializer = true:suggestion dotnet_style_collection_initializer = true:suggestion +dotnet_style_prefer_collection_expression = when_types_exactly_match dotnet_style_explicit_tuple_names = true:suggestion dotnet_style_coalesce_expression = true:suggestion dotnet_style_null_propagation = true:suggestion