{"id":6529,"date":"2018-06-14T13:24:33","date_gmt":"2018-06-14T10:24:33","guid":{"rendered":"https:\/\/www.karadere.com\/blog\/?p=6529"},"modified":"2019-06-14T13:27:26","modified_gmt":"2019-06-14T10:27:26","slug":"c-notlarim","status":"publish","type":"post","link":"https:\/\/www.karadere.com\/blog\/c-notlarim.html","title":{"rendered":"C# Notlar\u0131m"},"content":{"rendered":"<p>Bu notlar c# projesinin anlamaya \u00e7al\u0131\u015f\u0131rken ald\u0131\u011f\u0131m notlar\u0131md\u0131r.<\/p>\n<p>VP projesini c# \u00e7evirme<\/p>\n<p>http:\/\/converter.telerik.com\/<\/p>\n<p>&nbsp;<\/p>\n<p>dockpanel \u00f6rne\u011fi&nbsp;http:\/\/dockpanelsuite.com\/<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div>If we write in the same way as above for the hashtable then we would not get the desired values.<\/div>\n<div>\n<div><\/div>\n<div>Hashtable ss = new Hashtable();<br \/>\nss[&#8220;key1&#8243;] =&#8221;india&#8221;;<br \/>\nss[&#8220;key2&#8221;] = &#8220;bharat&#8221;;<\/div>\n<div><\/div>\n<div>&nbsp;&nbsp;&nbsp; foreach (object gg in ss)<br \/>\n{<br \/>\nConsole.WriteLine(&#8220;Key value is &#8221; + gg);<br \/>\nConsole.Read();<br \/>\n}<\/div>\n<div><\/div>\n<div>Here we get&nbsp; System.Collections.DictionaryEntry and System.Collections.DictionaryEntry as output instead of the value pairs stored in the hashtable.<\/div>\n<div><\/div>\n<div>In this case we can help of DictinaryEntry object for iterating the hashtable.<\/div>\n<div><\/div>\n<div>&nbsp;foreach(DictionaryEntry gg in ss)<br \/>\n{<br \/>\nConsole.WriteLine(&#8220;Key&nbsp; and&nbsp; value are &#8221; + gg.Key + &#8221;&nbsp;&nbsp; &#8221;&nbsp; + gg.Value);<br \/>\nConsole.Read();<br \/>\n}<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Bu notlar c# projesinin anlamaya \u00e7al\u0131\u015f\u0131rken ald\u0131\u011f\u0131m notlar\u0131md\u0131r. VP projesini c# \u00e7evirme http:\/\/converter.telerik.com\/ &nbsp; dockpanel \u00f6rne\u011fi&nbsp;http:\/\/dockpanelsuite.com\/ &nbsp; &nbsp; If we write in the same way as above for the hashtable then we would not get the desired values. Hashtable ss = new Hashtable(); ss[&#8220;key1&#8243;] =&#8221;india&#8221;; ss[&#8220;key2&#8221;] = &#8220;bharat&#8221;; &nbsp;&nbsp;&nbsp; foreach (object gg in ss) { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[3110,1581],"class_list":["post-6529","post","type-post","status-publish","format-standard","hentry","category-genel","tag-c","tag-notlarim","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"views":470,"_links":{"self":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/6529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/comments?post=6529"}],"version-history":[{"count":4,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/6529\/revisions"}],"predecessor-version":[{"id":6990,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/6529\/revisions\/6990"}],"wp:attachment":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/media?parent=6529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/categories?post=6529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/tags?post=6529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}