﻿
{"id":4067,"date":"2016-04-19T10:52:42","date_gmt":"2016-04-19T10:52:42","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=4067"},"modified":"2016-04-19T10:52:42","modified_gmt":"2016-04-19T10:52:42","slug":"c-6-0-dictionary-initializers","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/c-6-0-dictionary-initializers\/","title":{"rendered":"C# 6.0 Dictionary Initializers"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>C# 3.0 versiyonu ile Dictionary gibi key &#8211; value yap\u0131s\u0131nda \u00e7al\u0131\u015fan koleksiyonlar i\u00e7in a\u015fa\u011f\u0131daki gibi kullan\u0131ma gelen yap\u0131 C# 6.0 versiyonunda indexer tarz\u0131nda i\u015flenebilmektedir.<\/p>\n<p>Eski s\u00fcr\u00fcm.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n            Dictionary&lt;string, int&gt; Liste = new Dictionary&lt;string, int&gt; {\r\n                {&quot;a&quot;, 1 },\r\n                {&quot;b&quot;, 2 },\r\n                {&quot;c&quot;, 3 },\r\n                {&quot;d&quot;, 4 },\r\n                {&quot;e&quot;, 5 }\r\n            };\r\n<\/pre>\n<p>Yeni s\u00fcr\u00fcm.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n            Dictionary&lt;string, int&gt; Liste = new Dictionary&lt;string, int&gt;\r\n            {\r\n                &#x5B;&quot;a&quot;] = 1,\r\n                &#x5B;&quot;b&quot;] = 2,\r\n                &#x5B;&quot;c&quot;] = 3,\r\n                &#x5B;&quot;d&quot;] = 4,\r\n                &#x5B;&quot;e&quot;] = 5\r\n            };\r\n<\/pre>\n<p>G\u00f6rd\u00fc\u011f\u00fcn\u00fcz gibi, key &#8211; value pair de\u011ferlerini girerken hangisi key hangisi value daha iyi anla\u015f\u0131labilen okunakl\u0131 bir gramerde \u00e7al\u0131\u015fabilmekteyiz.<\/p>\n<p>\u0130yi \u00e7al\u0131\u015fmalar&#8230;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>C# 3.0 versiyonu ile Dictionary gibi key &#8211; value yap\u0131s\u0131nda \u00e7al\u0131\u015fan koleksiyonlar i\u00e7in a\u015fa\u011f\u0131daki gibi kullan\u0131ma gelen yap\u0131 C# 6.0 versiyonunda indexer tarz\u0131nda i\u015flenebilmektedir. Eski s\u00fcr\u00fcm. Dictionary&lt;string, int&gt; Liste = new Dictionary&lt;string, int&gt; {&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":3014,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,338,720],"tags":[353,27,724,1090,962,1089,1091,335],"class_list":["post-4067","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-sharp-c","category-c-5-0","category-c-6-0","tag-c-sharp","tag-c","tag-c-6-0","tag-dictionary","tag-key","tag-key-value-pair","tag-pair","tag-value"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/4067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=4067"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/4067\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/3014"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=4067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=4067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=4067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}