Does anyone know if there is a way I can insert values into a C# Dictionary when I create it? I can, but don\'t want to, do dict.Add(int, \"string\") for each item
dict.Add(int, \"string\")
You were almost there:
var dict = new Dictionary() { {0, "string"}, {1,"string2"},{2,"string3"}};