{"id":35,"date":"2020-06-02T19:58:49","date_gmt":"2020-06-02T19:58:49","guid":{"rendered":"http:\/\/bahadirmeric.net\/bahadir\/?p=35"},"modified":"2020-06-02T19:59:12","modified_gmt":"2020-06-02T19:59:12","slug":"c-attribute-okumak","status":"publish","type":"post","link":"http:\/\/bahadirmeric.net\/bahadir\/2020\/06\/02\/c-attribute-okumak\/","title":{"rendered":"C# Attribute Okumak"},"content":{"rendered":"\n<p>ba\u015fl\u0131klar\u0131n\u0131n ne oldu\u011funu g\u00f6rmek i\u00e7in a\u015fa\u011f\u0131daki kodu kullanaca\u011f\u0131z. Amac\u0131m\u0131z baz\u0131 sitelerde attribute tan\u0131mlamas\u0131 yap\u0131larak iletilen de\u011ferleri C# taraf\u0131nda okuyup neler oldu\u011funu \u00f6\u011frenmek.<\/p>\n\n\n\n<p>\u015eimdi kodumuzu yazal\u0131m;<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\nList&lt;HtmlMeta&gt; metas = new List&lt;HtmlMeta&gt;();\nforeach (Control c in this.Page.Header.Controls)\n    if (c.GetType() == typeof(HtmlMeta))\n    {\n        HtmlMeta meta = (HtmlMeta)c;\n        if (meta.Name == &quot;Keywords&quot;)\n            meta.Content = &quot;content goes here&quot;;\n        break;\n    }\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>ba\u015fl\u0131klar\u0131n\u0131n ne oldu\u011funu g\u00f6rmek i\u00e7in a\u015fa\u011f\u0131daki kodu kullanaca\u011f\u0131z. Amac\u0131m\u0131z baz\u0131 sitelerde attribute tan\u0131mlamas\u0131 yap\u0131larak iletilen de\u011ferleri C# taraf\u0131nda okuyup neler oldu\u011funu \u00f6\u011frenmek. \u015eimdi kodumuzu yazal\u0131m;<\/p>\n","protected":false},"author":1,"featured_media":16,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[4,6],"class_list":["post-35","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c","tag-c","tag-visual-studio"],"_links":{"self":[{"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":1,"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":36,"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/posts\/35\/revisions\/36"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/media\/16"}],"wp:attachment":[{"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bahadirmeric.net\/bahadir\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}