C Sharp (C#) - Collections
Identify the issue in this C# code snippet:
var dict = new Dictionary<string, int>();
dict["key"] = 1;
dict.Add("key", 2);var dict = new Dictionary<string, int>();
dict["key"] = 1;
dict.Add("key", 2);15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions