C# dictionary initalise and put value direcly code example
Example: c# inline initialize dictionary
var testDict = new Dictionary<string, string>() { ["key1"] = "value1", ["key2"] = "value2" };
var testDict = new Dictionary<string, string>() { ["key1"] = "value1", ["key2"] = "value2" };