Answers for "c# iniatlize dictionary with values"

C#
22

c# initialize dictionary

Dictionary<int, string> dictNew = new Dictionary<int,string>()
{
  {1, "true"},
  {2, "false"}
}
Posted by: Guest on May-07-2020
0

c# dictionary with dictionary as value

var collection = new Dictionary<string, Dictionary<string, int>>();
collection.Add("some key", new Dictionary<string, int>());
collection["some key"].Add("inner key", 0);
Posted by: Guest on October-19-2021

Code answers related to "c# iniatlize dictionary with values"

C# Answers by Framework

Browse Popular Code Answers by Language