<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Writing Something &#187; reflection</title> <atom:link href="http://www.serdarb.com/tag/reflection/feed/" rel="self" type="application/rss+xml" /><link>http://www.serdarb.com</link> <description>Serdar's</description> <lastBuildDate>Wed, 21 Dec 2011 12:35:22 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Reflection da Method Çalıştırıken Out ve Ref Parametreleri</title><link>http://www.serdarb.com/csharp-c/reflection-da-method-calistiriken-out-ve-ref-parametreleri/</link> <comments>http://www.serdarb.com/csharp-c/reflection-da-method-calistiriken-out-ve-ref-parametreleri/#comments</comments> <pubDate>Fri, 30 Jan 2009 14:32:12 +0000</pubDate> <dc:creator>serdar</dc:creator> <category><![CDATA[Csharp - C#]]></category> <category><![CDATA[reflection]]></category><guid
isPermaLink="false">http://www.serdarb.com/index.php/2009/01/30/reflection-da-method-calistiriken-out-ve-ref-parametreleri/</guid> <description><![CDATA[Reflection ile out parametreli bir methodu çalıştırmak için ParameterModifier dizisi kullanmamız gerekiyor. (1 method için 1 uzunluklu bir dizi oluşturup. 2 parametre için de dizinin elemanına 2 elemanlı bir diziymiş gibi davranıp true değerini verebiliriz. bi türlü dile getiremedim :P)
true ref ve out için veriliyor, false da normal parametreler için.
Parametrelerin türünü belirtirken Type.GetType metoduna string [...]]]></description> <wfw:commentRss>http://www.serdarb.com/csharp-c/reflection-da-method-calistiriken-out-ve-ref-parametreleri/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Reflecting Something</title><link>http://www.serdarb.com/csharp-c/reflecting-something/</link> <comments>http://www.serdarb.com/csharp-c/reflecting-something/#comments</comments> <pubDate>Wed, 21 Jan 2009 14:17:07 +0000</pubDate> <dc:creator>serdar</dc:creator> <category><![CDATA[Csharp - C#]]></category> <category><![CDATA[reflection]]></category><guid
isPermaLink="false">http://www.serdarb.com/index.php/2009/01/21/reflecting-something/</guid> <description><![CDATA[Reflection ile bir dll in içindeki method ve property&#8217;lere erişmeyi gösteren küçük bir örnek&#8230;
Önce Activator.CreateInstance ile nesnenin örneğini oluşturuyoruz, sonra GetProperty ile özelliği alıp SetValue ile de değeri veriyoruz&#8230;
GetMethod().Invoke() ile de class&#8217;ın içinden bir metodu çalıştırabiliriz&#8230;&#160;
BaseReport rpt = Activator.CreateInstance&#40;Type.GetType&#40;&#34;ReportClass&#34;&#41;&#41; as BaseReport;
&#160;
rpt.GetType&#40;&#41;.GetProperty&#40;&#34;Paremetre&#34;&#41;.SetValue&#40;rpt, &#34;Ankara&#34;, null&#41;;
&#160;
rpt.GetType&#40;&#41;.GetMethod&#40;&#34;Work&#34;&#41;.Invoke&#40;rpt, new object&#91;&#93; &#123; &#34;Parametre&#34; &#125;&#41;;msdn
code guru
csharp nedir?]]></description> <wfw:commentRss>http://www.serdarb.com/csharp-c/reflecting-something/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.serdarb.com @ 2012-02-07 01:16:54 -->
