{"id":380,"date":"2006-06-11T05:47:00","date_gmt":"2006-06-11T02:47:00","guid":{"rendered":"https:\/\/fatihboy.com\/?p=380"},"modified":"2021-06-12T21:06:10","modified_gmt":"2021-06-12T18:06:10","slug":"reflection-ve-dinamik-assemblyler","status":"publish","type":"post","link":"https:\/\/fatihboy.com\/en\/reflection-ve-dinamik-assemblyler\/","title":{"rendered":"Reflection ve Dinamik Assembly\u2019ler"},"content":{"rendered":"<p>&nbsp;&nbsp; Yazd\u0131\u011f\u0131m bir uygulamada; uygulamada y\u00fckl\u00fc assembly&#8217;lerin listesini alarak bunlar i\u00e7erisinde belirli bir attribute&#8217;a sahip olanlar \u00fczerinde i\u015flem yapmak istiyordum. Bunun i\u00e7inde assembly&#8217;lerin listesini ald\u0131ktan sonra a\u015fa\u011f\u0131daki kodu yazm\u0131\u015ft\u0131m :<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">foreach (System.Reflection.Assembly assembly in System.AppDomain.CurrentDomain.GetAssemblies()) {\n    \/\/Assembly ile ilgili analizi ger\u00e7ekle\u015ftir\n}<\/pre>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; Fakat bu kodu \u00e7al\u0131\u015ft\u0131rd\u0131\u011f\u0131m zaman System.NotSupportedException hatas\u0131n\u0131 al\u0131yordum. Biraz ara\u015ft\u0131rman\u0131n ard\u0131ndan bunun sebebinin kulland\u0131\u011f\u0131m 3. parti k\u00fct\u00fcphanelerden birinin dinamik olarak bir assembly olu\u015fturarak bunu mevcut domain&#8217;e eklemesi oldu\u011funu anlad\u0131m. Dinamik olarak olu\u015fturulan bu assembly&#8217;leri anlamak i\u00e7in ise a\u015fa\u011f\u0131daki kod i\u015finizi g\u00f6recektir :<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">if (assembly is System.Reflection.Emit.AssemblyBuilder) {\n   continue;\n}<\/pre>\n\n\n\n<p>Bu sayede elinizde bulunan assembly&#8217;nin dinamik olup olmad\u0131\u011f\u0131n\u0131 anlayarak analiz i\u015flemini bu assembly i\u00e7in es ge\u00e7ebilirsiniz.<\/p>","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp; Yazd\u0131\u011f\u0131m bir uygulamada; uygulamada y\u00fckl\u00fc assembly&#8217;lerin listesini alarak bunlar i\u00e7erisinde belirli bir attribute&#8217;a sahip olanlar \u00fczerinde i\u015flem yapmak istiyordum. Bunun i\u00e7inde assembly&#8217;lerin listesini ald\u0131ktan sonra a\u015fa\u011f\u0131daki kodu yazm\u0131\u015ft\u0131m : foreach (System.Reflection.Assembly assembly in System.AppDomain.CurrentDomain.GetAssemblies()) { \/\/Assembly ile ilgili analizi ger\u00e7ekle\u015ftir } &nbsp;&nbsp;&nbsp; Fakat bu kodu \u00e7al\u0131\u015ft\u0131rd\u0131\u011f\u0131m zaman System.NotSupportedException hatas\u0131n\u0131 al\u0131yordum. Biraz ara\u015ft\u0131rman\u0131n ard\u0131ndan bunun&#8230;<\/p>\n<p><a class=\"read-more\" href=\"https:\/\/fatihboy.com\/en\/reflection-ve-dinamik-assemblyler\/\">Read More<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77,28],"tags":[41,74],"class_list":["post-380","post","type-post","status-publish","format-standard","hentry","category-csharp","category-turkce","tag-c","tag-reflection"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Reflection ve Dinamik Assembly\u2019ler - Fatih Boy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihboy.com\/en\/reflection-ve-dinamik-assemblyler\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Reflection ve Dinamik Assembly\u2019ler - Fatih Boy\" \/>\n<meta property=\"og:description\" content=\"&nbsp;&nbsp; Yazd\u0131\u011f\u0131m bir uygulamada; uygulamada y\u00fckl\u00fc assembly&#8217;lerin listesini alarak bunlar i\u00e7erisinde belirli bir attribute&#8217;a sahip olanlar \u00fczerinde i\u015flem yapmak istiyordum. Bunun i\u00e7inde assembly&#8217;lerin listesini ald\u0131ktan sonra a\u015fa\u011f\u0131daki kodu yazm\u0131\u015ft\u0131m : foreach (System.Reflection.Assembly assembly in System.AppDomain.CurrentDomain.GetAssemblies()) { \/\/Assembly ile ilgili analizi ger\u00e7ekle\u015ftir } &nbsp;&nbsp;&nbsp; Fakat bu kodu \u00e7al\u0131\u015ft\u0131rd\u0131\u011f\u0131m zaman System.NotSupportedException hatas\u0131n\u0131 al\u0131yordum. Biraz ara\u015ft\u0131rman\u0131n ard\u0131ndan bunun...Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihboy.com\/en\/reflection-ve-dinamik-assemblyler\/\" \/>\n<meta property=\"og:site_name\" content=\"Fatih Boy\" \/>\n<meta property=\"article:published_time\" content=\"2006-06-11T02:47:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-12T18:06:10+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Boy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Boy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/\"},\"author\":{\"name\":\"Fatih Boy\",\"@id\":\"https:\/\/fatihboy.com\/#\/schema\/person\/6b06a41d42eed36eaa0780fbeb774158\"},\"headline\":\"Reflection ve Dinamik Assembly\u2019ler\",\"datePublished\":\"2006-06-11T02:47:00+00:00\",\"dateModified\":\"2021-06-12T18:06:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/\"},\"wordCount\":136,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihboy.com\/#\/schema\/person\/6b06a41d42eed36eaa0780fbeb774158\"},\"keywords\":[\"C#\",\"Reflection\"],\"articleSection\":[\"C#\",\"T\u00fcrk\u00e7e\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/\",\"url\":\"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/\",\"name\":\"Reflection ve Dinamik Assembly\u2019ler - Fatih Boy\",\"isPartOf\":{\"@id\":\"https:\/\/fatihboy.com\/#website\"},\"datePublished\":\"2006-06-11T02:47:00+00:00\",\"dateModified\":\"2021-06-12T18:06:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fatihboy.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reflection ve Dinamik Assembly\u2019ler\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihboy.com\/#website\",\"url\":\"https:\/\/fatihboy.com\/\",\"name\":\"Fatih Boy\",\"description\":\"Ki\u015fisel Web Sitesi\",\"publisher\":{\"@id\":\"https:\/\/fatihboy.com\/#\/schema\/person\/6b06a41d42eed36eaa0780fbeb774158\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihboy.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihboy.com\/#\/schema\/person\/6b06a41d42eed36eaa0780fbeb774158\",\"name\":\"Fatih Boy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fatihboy.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5b3de123ad95a2ffe30b75a54cee98b55f65185c6d6805b35088a3d945f2feb4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5b3de123ad95a2ffe30b75a54cee98b55f65185c6d6805b35088a3d945f2feb4?s=96&d=mm&r=g\",\"caption\":\"Fatih Boy\"},\"logo\":{\"@id\":\"https:\/\/fatihboy.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/fatihboy.com\"],\"url\":\"https:\/\/fatihboy.com\/en\/author\/fatih\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Reflection ve Dinamik Assembly\u2019ler - Fatih Boy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihboy.com\/en\/reflection-ve-dinamik-assemblyler\/","og_locale":"en_US","og_type":"article","og_title":"Reflection ve Dinamik Assembly\u2019ler - Fatih Boy","og_description":"&nbsp;&nbsp; Yazd\u0131\u011f\u0131m bir uygulamada; uygulamada y\u00fckl\u00fc assembly&#8217;lerin listesini alarak bunlar i\u00e7erisinde belirli bir attribute&#8217;a sahip olanlar \u00fczerinde i\u015flem yapmak istiyordum. Bunun i\u00e7inde assembly&#8217;lerin listesini ald\u0131ktan sonra a\u015fa\u011f\u0131daki kodu yazm\u0131\u015ft\u0131m : foreach (System.Reflection.Assembly assembly in System.AppDomain.CurrentDomain.GetAssemblies()) { \/\/Assembly ile ilgili analizi ger\u00e7ekle\u015ftir } &nbsp;&nbsp;&nbsp; Fakat bu kodu \u00e7al\u0131\u015ft\u0131rd\u0131\u011f\u0131m zaman System.NotSupportedException hatas\u0131n\u0131 al\u0131yordum. Biraz ara\u015ft\u0131rman\u0131n ard\u0131ndan bunun...Read More","og_url":"https:\/\/fatihboy.com\/en\/reflection-ve-dinamik-assemblyler\/","og_site_name":"Fatih Boy","article_published_time":"2006-06-11T02:47:00+00:00","article_modified_time":"2021-06-12T18:06:10+00:00","author":"Fatih Boy","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Fatih Boy","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/#article","isPartOf":{"@id":"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/"},"author":{"name":"Fatih Boy","@id":"https:\/\/fatihboy.com\/#\/schema\/person\/6b06a41d42eed36eaa0780fbeb774158"},"headline":"Reflection ve Dinamik Assembly\u2019ler","datePublished":"2006-06-11T02:47:00+00:00","dateModified":"2021-06-12T18:06:10+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/"},"wordCount":136,"commentCount":0,"publisher":{"@id":"https:\/\/fatihboy.com\/#\/schema\/person\/6b06a41d42eed36eaa0780fbeb774158"},"keywords":["C#","Reflection"],"articleSection":["C#","T\u00fcrk\u00e7e"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/","url":"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/","name":"Reflection ve Dinamik Assembly\u2019ler - Fatih Boy","isPartOf":{"@id":"https:\/\/fatihboy.com\/#website"},"datePublished":"2006-06-11T02:47:00+00:00","dateModified":"2021-06-12T18:06:10+00:00","breadcrumb":{"@id":"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihboy.com\/reflection-ve-dinamik-assemblyler\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fatihboy.com\/"},{"@type":"ListItem","position":2,"name":"Reflection ve Dinamik Assembly\u2019ler"}]},{"@type":"WebSite","@id":"https:\/\/fatihboy.com\/#website","url":"https:\/\/fatihboy.com\/","name":"Fatih Boy","description":"Ki\u015fisel Web Sitesi","publisher":{"@id":"https:\/\/fatihboy.com\/#\/schema\/person\/6b06a41d42eed36eaa0780fbeb774158"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihboy.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihboy.com\/#\/schema\/person\/6b06a41d42eed36eaa0780fbeb774158","name":"Fatih Boy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fatihboy.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5b3de123ad95a2ffe30b75a54cee98b55f65185c6d6805b35088a3d945f2feb4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5b3de123ad95a2ffe30b75a54cee98b55f65185c6d6805b35088a3d945f2feb4?s=96&d=mm&r=g","caption":"Fatih Boy"},"logo":{"@id":"https:\/\/fatihboy.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/fatihboy.com"],"url":"https:\/\/fatihboy.com\/en\/author\/fatih\/"}]}},"brizy_media":[],"_links":{"self":[{"href":"https:\/\/fatihboy.com\/en\/wp-json\/wp\/v2\/posts\/380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihboy.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihboy.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihboy.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihboy.com\/en\/wp-json\/wp\/v2\/comments?post=380"}],"version-history":[{"count":1,"href":"https:\/\/fatihboy.com\/en\/wp-json\/wp\/v2\/posts\/380\/revisions"}],"predecessor-version":[{"id":381,"href":"https:\/\/fatihboy.com\/en\/wp-json\/wp\/v2\/posts\/380\/revisions\/381"}],"wp:attachment":[{"href":"https:\/\/fatihboy.com\/en\/wp-json\/wp\/v2\/media?parent=380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihboy.com\/en\/wp-json\/wp\/v2\/categories?post=380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihboy.com\/en\/wp-json\/wp\/v2\/tags?post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}