Dictionary<string, string> dic = new Dictionary<string, string>(); dic.Add("abc","xyz"); dic.Add("def","ijk");
string[] arr = new string[] { "One", "Two" }; var dict = arr.ToDictionary(item => item, item => true); foreach (var pair in dict) { Console.WriteLine("{0}, {1}", pair.Key, pair.Value); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)