I'm putting final initializers on the back burner until we see how conditional assignment in initializers plays out. First stab: void branches! github.com/dotnet/cshar...
[Draft proposal] Void branches · dotnet csharplang · Discussion #10402
Summary Let a void branch of ?:, ??, or a switch expression skip the enclosing assignment, as a?.b = c does when a is null: using System.Text.Json.Nodes; JsonNode node = JsonNode.Parse("""{ "summar...
github.com