èªåã¯ä»ã¾ã§Dictionaryãèµ°æ»ããæã«ã¯ä»¥ä¸ã®ãããªã³ã¼ããæ¸ãã¦ãã¾ããã ãã¶ãä»æºãã£ã¦ãããã¸ã§ã¯ãã§ãããæ¸ãã¦ã¾ãã class Program { static void Main(string[] args) { var sampleDict = new Dictionary<string, string> { { "Key1", "Val1" }, { "Key2", "Val2" }, { "Key3", "Val3" } }; foreach (var key in sampleDict.Keys) { Console.WriteLine(string.Format("Key : {0} / Value : {1}", key, sampleDict[key])); } } } ã§ããããã£ã±ããã®èµ°æ»ã®ä»æ¹ã«ã¯çåããã£ãããã§ãã Dictionaryï¼ã¨
{{#tags}}- {{label}}
{{/tags}}