❔ Entry API for dictionaries?
Rust has this nifty API called
So, you can modify a value in a hashmap (dictionary) if the key exists, or insert a new entry if the key does not exist.
Is there something similar in C#?
Entry which allows one to write code such as:So, you can modify a value in a hashmap (dictionary) if the key exists, or insert a new entry if the key does not exist.
Is there something similar in C#?


