Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

inline creation dictionnary C#

#With C#6
var dict = new Dictionary<string, int>
{
    ["one"] = 1,
    ["two"] = 2,
    ["three"] = 3
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #inline #creation #dictionnary
ADD COMMENT
Topic
Name
9+3 =