declare dictionary inline c# 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" };