{"provider_name":"Hatena Blog","type":"rich","version":"1.0","categories":["C#","C# - Dictionary"],"description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 using System.Collections.Generic; public static class Program { private static void Main() { var table = new Dictionary<int, string> { { 1, \"\u30d5\u30b7\u30ae\u30c0\u30cd\" }, { 2, \"\u30d5\u30b7\u30ae\u30bd\u30a6\" }, { 3, \"\u30ea\u30b6\u30fc\u30c9\u30f3\" }, }; // OK table[ 3 ] = \"\u30d5\u30b7\u30ae\u30d0\u30ca\"; // NG\uff08\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\uff09 // table.Add( 3, \"\u30d5\u30b7\u30ae\u30d0\u30ca\" ); } } Add \u95a2\u6570\u3067\u306f\u306a\u304f\u30a4\u30f3\u30c7\u30af\u30b5\u3092\u4f7f\u7528\u3057\u307e\u3059","blog_url":"https://baba-s.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2015%2F05%2F22%2F104452\" title=\"\u3010C#\u3011Dictionary \u306b\u6307\u5b9a\u3057\u305f\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u4ee3\u5165\u3059\u308b\u65b9\u6cd5 - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2015-05-22 10:44:52","title":"\u3010C#\u3011Dictionary \u306b\u6307\u5b9a\u3057\u305f\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u4ee3\u5165\u3059\u308b\u65b9\u6cd5","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","width":"100%","height":"190","author_url":"https://blog.hatena.ne.jp/baba_s/","provider_url":"https://hatena.blog","author_name":"baba_s","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20180826/20180826160156.png","url":"https://baba-s.hatenablog.com/entry/2015/05/22/104452"}