Display data to Debug Console
问题 I writing app for UWP I have this code var p = await wc.GetProducts(new Dictionary<string, string>() { { "orderby", "id" }, { "filter[search]", "1884" } }); I try to display data from dictionary like this. Debug.WriteLine("There"); Debug.WriteLine(p.products); But it not works. How I can display data of dictionary ? 回答1: Which type does GetProducts() return? If it's just a Dictionary you can do the following: foreach(var key in p.Keys) { Debug.WriteLine(key); } 回答2: To read a Dictionary --