<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://davesbox.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>API Hall of Shame #1 - Misleading names</title><link>http://davesbox.com/archive/2008/12/06/api-oddities-1.aspx</link><description>Why does Type.GetMember return an array of members? It&amp;#39;s description states: Gets the specified members of the current Type. Here&amp;#39;s a hint; if you are going to return multiple things from a method or property, give it a plural name - it just makes</description><dc:language>en</dc:language><generator>CommunityServer 2008 (Build: 30417.1769)</generator><item><title>re: API Hall of Shame #1 - Misleading names</title><link>http://davesbox.com/archive/2008/12/06/api-oddities-1.aspx#1182</link><pubDate>Sat, 17 Jan 2009 02:46:34 GMT</pubDate><guid isPermaLink="false">2122c344-89bc-4cd7-b145-b0515ba3439f:1182</guid><dc:creator>dand</dc:creator><description>&lt;p&gt;I agree completely with naming things clearly, i would argue to have the method name to be GetAllMembers(). &amp;nbsp;It might be a small point but &amp;#39;All&amp;#39; stands out and clearly implies more than one. &amp;nbsp;&amp;quot;All&amp;quot; stands out textually better than an &amp;#39;s&amp;#39; at the end of a method name. Additionally i&amp;#39;ve seen a few times intellisense, as helpful as it tries to be, will at times select the wrong/first method from intellisense. &amp;nbsp; So i would be one to argue to have GetMember() and GetAllMembers().&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://davesbox.com/aggbug.aspx?PostID=1182" width="1" height="1"&gt;</description></item><item><title>re: API Hall of Shame #1 - Misleading names</title><link>http://davesbox.com/archive/2008/12/06/api-oddities-1.aspx#1025</link><pubDate>Tue, 09 Dec 2008 01:20:45 GMT</pubDate><guid isPermaLink="false">2122c344-89bc-4cd7-b145-b0515ba3439f:1025</guid><dc:creator>Stevi Deter</dc:creator><description>&lt;p&gt;Now I feel better about taking the time recently to update a method&amp;#39;s name to plural because it returned a List. Made me crazy and I finally just had to fix it. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://davesbox.com/aggbug.aspx?PostID=1025" width="1" height="1"&gt;</description></item><item><title>re: API Hall of Shame #1 - Misleading names</title><link>http://davesbox.com/archive/2008/12/06/api-oddities-1.aspx#1023</link><pubDate>Mon, 08 Dec 2008 21:33:38 GMT</pubDate><guid isPermaLink="false">2122c344-89bc-4cd7-b145-b0515ba3439f:1023</guid><dc:creator>Popanz A</dc:creator><description>&lt;p&gt;Type.GetMember returns a single member. Did you notice the name paramter?&lt;/p&gt;
&lt;div class="davescomment"&gt;What version of Type.GetMember are you looking at? All three overloads (&lt;a href="http://msdn.microsoft.com/en-us/library/xdtchs6z.aspx" class="null"&gt;1&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/library/16z89wsw.aspx" class="null"&gt;2&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/library/1dk6tw7k.aspx" class="null"&gt;3&lt;/a&gt;) return multiple members if their names are the same. For example, if I have three overloaded methods all called &amp;#39;Foo&amp;#39;, it will return all three if I pass &amp;#39;Foo&amp;#39; as the name parameter.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://davesbox.com/aggbug.aspx?PostID=1023" width="1" height="1"&gt;</description></item></channel></rss>