Answers for "initiate dictionary in c#"

C#
3

init dictionary c#

var myDict = new Dictionary<string, string>
{
    { "key1", "value1" },
    { "key2", "value2" }
};
Posted by: Guest on April-15-2021
18

c# initialize dictionary

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

C# Answers by Framework

Browse Popular Code Answers by Language