Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

init dictionary c#


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

        Console.ReadKey();
    }
}

Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #init #dictionary
ADD COMMENT
Topic
Name
9+8 =