Add a new API to initialize an ImmutableDictionary in a single expression/invocation without first creating a mutable dictionary #9144
Answered
by
HaloFour
Bartleby2718
asked this question in
Language Ideas
-
Beta Was this translation helpful? Give feedback.
Answered by
HaloFour
Feb 15, 2025
Replies: 2 comments
-
See: #8658 That should enable: ImmutableDictionary<string, int> MyImmutableDictionary1 = ["a": 1, "b": 2]; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Bartleby2718
-
Also FWIW, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See: #8658
That should enable: