Horje
init dictionary c# Code Example
init dictionary c#
var myDict = new Dictionary<string, string>
{
    { "key1", "value1" },
    { "key2", "value2" }
};
c# initialize dictionary
Dictionary<int, string> dictNew = new Dictionary<int,string>()
{
  {1, "true"},
  {2, "false"}
}
init dictionary c#
Dictionary<int,string> dict = new Dictionary<int, string>();
dict.Add(1, "Mohan");
dict.Add(2, "Kishor");
dict.Add(3, "Pankaj");
dict.Add(4, "Jeetu");
init dictionary c#

static class Program
{
    static void Main(string[] args)
    {
        var myDict = new Dictionary<string, string>
        {
            { "key1", "value1" },
            { "key2", "value2" }
        };

        Console.ReadKey();
    }
}





Csharp

Related
unity on mousewheel down Code Example unity on mousewheel down Code Example
how to call something once in update Code Example how to call something once in update Code Example
unity set object scale Code Example unity set object scale Code Example
setting the anchor presets unity Code Example setting the anchor presets unity Code Example
c# delete files older than x months Code Example c# delete files older than x months Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12