Answers for "how to instantiate and assign dictionary c#"

C#
18

c# initialize dictionary

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

add values to dictionary c# while initializing

AllCities.Add(new City("Rome") { Names = { { "DE", "Rom" }, { "...", "..." } } });
Posted by: Guest on October-05-2020

Code answers related to "how to instantiate and assign dictionary c#"

C# Answers by Framework

Browse Popular Code Answers by Language