<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx</link><description>My name is Kathy Kam and I am the newest addition to the Common Language Runtime (CLR) Program Management (PM) team. Like another PM on my team, JoelPob , I also grew up in the "Land Down Under". I left Sydney to pursue a degree in Computer Engineering</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx#560385</link><pubDate>Sat, 25 Mar 2006 01:05:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:560385</guid><dc:creator>Tadej</dc:creator><description>Cool !
&lt;br&gt;
&lt;br&gt;Could we force the field layout by:
&lt;br&gt;[StructLayout(LayoutKind.Sequential)]
&lt;br&gt;class HelloObj { ... }
&lt;br&gt;
&lt;br&gt;Or does StructLayout only have effect only when the object is actually marshaled to the unmanaged code?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=560385" width="1" height="1"&gt;</description></item><item><title>re: Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx#531198</link><pubDate>Mon, 13 Feb 2006 23:41:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:531198</guid><dc:creator>esteewhy</dc:creator><description>Hello,&lt;br&gt;&lt;br&gt;sorry, but how can one really get the order in which FieldInfoS are returned by Type.GetFields(), as &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/kathykam/archive/2005/09/21/472566.aspx#474548&amp;quot;&amp;gt;Jeroen"&gt;http://blogs.msdn.com/kathykam/archive/2005/09/21/472566.aspx#474548&amp;quot;&amp;gt;Jeroen&lt;/a&gt; Frijters&amp;lt;/a&amp;gt; pointed? This is an interesting question and msdn keeps silent ...&lt;br&gt;&lt;br&gt;Thank you&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=531198" width="1" height="1"&gt;</description></item><item><title>re: Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx#481450</link><pubDate>Sat, 15 Oct 2005 21:47:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:481450</guid><dc:creator>SN</dc:creator><description>Hi Kathy,&lt;br&gt;Congrats on your new position. That was certainly a creative way to Hello the world.&lt;br&gt;By the way, since you just joined the team, the interview experience must be fresh in your mind. Can you blog about your PM interview experience in the CLR team?&lt;br&gt;Thanks&lt;br&gt;SN&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=481450" width="1" height="1"&gt;</description></item><item><title>re: Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx#475282</link><pubDate>Thu, 29 Sep 2005 16:09:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:475282</guid><dc:creator>Themes</dc:creator><description>Or even shorter:&lt;br&gt;&lt;br&gt;static void Main(string[] args)&lt;br&gt;{&lt;br&gt;    new List&amp;lt;FieldInfo&amp;gt;(typeof(HelloObj).GetFields())&lt;br&gt;        .ConvertAll&amp;lt;string&amp;gt;(delegate(FieldInfo f) { return f.Name+&amp;quot; &amp;quot;; })&lt;br&gt;        .ForEach(Console.Write);&lt;br&gt;}&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=475282" width="1" height="1"&gt;</description></item><item><title>re: Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx#475281</link><pubDate>Thu, 29 Sep 2005 16:08:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:475281</guid><dc:creator>Themes</dc:creator><description>Kathy, aren't you heared about new Lambda-style programming? Here is more modern way to do things ;-)&lt;br&gt;&lt;br&gt;static void Main(string[] args)&lt;br&gt;{&lt;br&gt;    List&amp;lt;FieldInfo&amp;gt; fields = new List&amp;lt;FieldInfo&amp;gt;(typeof(HelloObj).GetFields());&lt;br&gt;&lt;br&gt;    List&amp;lt;string&amp;gt; fieldNames = fields.ConvertAll&amp;lt;string&amp;gt;(&lt;br&gt;        delegate(FieldInfo f) { return f.Name+&amp;quot; &amp;quot;; });&lt;br&gt;    &lt;br&gt;    fieldNames.ForEach(Console.Write);&lt;br&gt;}&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=475281" width="1" height="1"&gt;</description></item><item><title>re: Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx#474805</link><pubDate>Wed, 28 Sep 2005 13:12:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:474805</guid><dc:creator>Dmitry Shaporenkov</dc:creator><description>Hi Kathy,&lt;br&gt;&lt;br&gt;you're welcome. The first question that came to my mind when I was looking at your program is why 'Kathy' field is an array? Is there any special meaning in this?&lt;br&gt;&lt;br&gt;Sorry if I'm missing something obvious :)&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Dmitry&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=474805" width="1" height="1"&gt;</description></item><item><title>re: Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx#474665</link><pubDate>Wed, 28 Sep 2005 03:42:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:474665</guid><dc:creator>KathyKam [MSFT]</dc:creator><description>Hi Hugo,&lt;br&gt;&lt;br&gt;Yeah, I was not following the Design Guidelines. My bad. I made &amp;quot;from&amp;quot; lower case so that it spells it out like a sentence correctly. Regarding &amp;quot;HelloObj&amp;quot;... old habits die hard. &lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Kathy&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=474665" width="1" height="1"&gt;</description></item><item><title>re: Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx#474642</link><pubDate>Wed, 28 Sep 2005 02:53:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:474642</guid><dc:creator>Marlun</dc:creator><description>Hello! =)&lt;br&gt;&lt;br&gt;Happy to see that you've started a blog, another one for my list and more information to gather :)&lt;br&gt;&lt;br&gt;Welcome!&lt;br&gt;&lt;br&gt;Marlun, Sweden&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=474642" width="1" height="1"&gt;</description></item><item><title>re: Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx#474621</link><pubDate>Wed, 28 Sep 2005 01:54:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:474621</guid><dc:creator>Mohammed</dc:creator><description>&lt;br&gt;Nice way to do a hello world Kathy,All the best at the CLR team&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=474621" width="1" height="1"&gt;</description></item><item><title>re: Hello World - Reflection Style</title><link>http://blogs.msdn.com/b/kathykam/archive/2005/09/21/472566.aspx#474614</link><pubDate>Wed, 28 Sep 2005 01:40:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:474614</guid><dc:creator>Hugo Batista</dc:creator><description>Hi Kathy,&lt;br&gt;The geek world welcomes you.&lt;br&gt;&lt;br&gt;BTW, do you really need the public fields ? And the lower case in &amp;quot;from&amp;quot;.. hum.. And &amp;quot;HelloObj&amp;quot; ? It is an object already ? :) The FxCop team will ban this hello, no ?&lt;br&gt;&lt;br&gt;Just kidding :) &lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=474614" width="1" height="1"&gt;</description></item></channel></rss>