C Sharp (C#) - Collections
What happens if you add duplicate keys in a dictionary initializer like this?
var dict = new Dictionary<string, int>() { {"a", 1}, {"a", 2} };var dict = new Dictionary<string, int>() { {"a", 1}, {"a", 2} };15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions