<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Coffeehouse - web api IEnumerable?</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Coffeehouse - web api IEnumerable?</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Wed, 19 Jun 2013 07:23:11 GMT</pubDate>
	<lastBuildDate>Wed, 19 Jun 2013 07:23:11 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>10</c9:totalResults>
	<c9:pageCount>-10</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Coffeehouse - web api IEnumerable?</title>
		<description><![CDATA[<p>Trying to find out which is better with WebAPI and why.</p><p>[HttpGet]<br>public IEnumerable&lt;Invoice&gt; GetInvoices()<br>{<br>...<br>}</p><p>OR</p><p>&nbsp;</p><p>[HttpGet]<br>public Invoice[] GetInvoices()<br>{<br>...<br>}</p><p>&nbsp;</p><p>Thanks.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/36dca2d6c63a42a79359a142013e26f1#36dca2d6c63a42a79359a142013e26f1</link>
		<pubDate>Thu, 10 Jan 2013 19:18:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/36dca2d6c63a42a79359a142013e26f1#36dca2d6c63a42a79359a142013e26f1</guid>
		<dc:creator>wsdotnet</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/wsdotnet/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - web api IEnumerable?</title>
		<description><![CDATA[<p>Better for what?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/c5c2acc791c0474daabca1420142a269#c5c2acc791c0474daabca1420142a269</link>
		<pubDate>Thu, 10 Jan 2013 19:34:40 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/c5c2acc791c0474daabca1420142a269#c5c2acc791c0474daabca1420142a269</guid>
		<dc:creator>cbae</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/cbae/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - web api IEnumerable?</title>
		<description><![CDATA[<p>@<a href="/Forums/Coffeehouse/web-api-IEnumerable#c36dca2d6c63a42a79359a142013e26f1">wsdotnet</a>: Neither ... use IQueryable.&nbsp; <a href="http://codebetter.com/johnvpetersen/2012/03/22/bringing-odata-to-your-webapi-just-use-iqueryable/">http://codebetter.com/johnvpetersen/2012/03/22/bringing-odata-to-your-webapi-just-use-iqueryable/</a></p><p>If for some reason you won't, IEnumerable is preferable because it's the interface for all synchronous collections in&nbsp; .NET, including arrays.</p><p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/478afc32494c446e8adba142015029c6#478afc32494c446e8adba142015029c6</link>
		<pubDate>Thu, 10 Jan 2013 20:23:55 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/478afc32494c446e8adba142015029c6#478afc32494c446e8adba142015029c6</guid>
		<dc:creator>Auxon</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/FuncOfT/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - web api IEnumerable?</title>
		<description><![CDATA[<p>@<a href="/Forums/Coffeehouse/web-api-IEnumerable#c478afc32494c446e8adba142015029c6">FuncOfT</a>: It would be preferable for regular APIs, but I don't think it really matters much in a WebApi. You don't know what's on the other end of the wire and have no control over what local data type they use in any event, so API design considerations here matter little. There's no difference in the resultant wire transfer, performance or functionality. The only reason to prefer IEnumerable&lt;T&gt; to an array would be if your underlying data wasn't an array to begin with... which we can't determine from the question.</p><p>But yeah, IQueryable would be preferred.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/47eedb16c7df432690c8a1420159d4fe#47eedb16c7df432690c8a1420159d4fe</link>
		<pubDate>Thu, 10 Jan 2013 20:59:08 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/47eedb16c7df432690c8a1420159d4fe#47eedb16c7df432690c8a1420159d4fe</guid>
		<dc:creator>William Kempf</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/wkempf/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - web api IEnumerable?</title>
		<description><![CDATA[<p>@<a href="/Forums/Coffeehouse/web-api-IEnumerable#cc5c2acc791c0474daabca1420142a269">cbae</a>:&nbsp;<span>performance.</span></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/495ab2d4895d49f1bbd6a14201669d7f#495ab2d4895d49f1bbd6a14201669d7f</link>
		<pubDate>Thu, 10 Jan 2013 21:45:40 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/495ab2d4895d49f1bbd6a14201669d7f#495ab2d4895d49f1bbd6a14201669d7f</guid>
		<dc:creator>wsdotnet</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/wsdotnet/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - web api IEnumerable?</title>
		<description><![CDATA[<p></p><blockquote><div class="quoteText"><p></p><p><a class="permalink" title="Post Permalink" href="/Forums/Coffeehouse/web-api-IEnumerable/495ab2d4895d49f1bbd6a14201669d7f">6 minutes&nbsp;ago</a>, <a href="/Niners/wsdotnet">wsdotnet</a> wrote</p><p>@<a href="/Forums/Coffeehouse/web-api-IEnumerable#cc5c2acc791c0474daabca1420142a269">cbae</a>:&nbsp;<span>performance.</span></p><p></p></div></blockquote><p></p><p>Both are exactly the same for performance, because the dominating effect is the cost of the network between your customer and your website.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/df6cd8c607e44ebfa253a1420168a2e0#df6cd8c607e44ebfa253a1420168a2e0</link>
		<pubDate>Thu, 10 Jan 2013 21:53:02 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/df6cd8c607e44ebfa253a1420168a2e0#df6cd8c607e44ebfa253a1420168a2e0</guid>
		<dc:creator>evildictaitor</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/evildictaitor/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - web api IEnumerable?</title>
		<description><![CDATA[<p></p><blockquote><div class="quoteText"><p></p><p><a class="permalink" title="Post Permalink" href="/Forums/Coffeehouse/web-api-IEnumerable/df6cd8c607e44ebfa253a1420168a2e0">33 minutes&nbsp;ago</a>, <a href="/Niners/evildictaitor">evildictait​or</a> wrote</p><p>*snip*</p><p>Both are exactly the same for performance</p><p></p></div></blockquote><p></p><p>Approximately exactly.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/d77c786ad88e41f0acd8a14201725f2c#d77c786ad88e41f0acd8a14201725f2c</link>
		<pubDate>Thu, 10 Jan 2013 22:28:28 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/d77c786ad88e41f0acd8a14201725f2c#d77c786ad88e41f0acd8a14201725f2c</guid>
		<dc:creator>Bass</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Bass/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - web api IEnumerable?</title>
		<description><![CDATA[<p></p><blockquote><div class="quoteText"><p></p><p><a class="permalink" title="Post Permalink" href="/Forums/Coffeehouse/web-api-IEnumerable/d77c786ad88e41f0acd8a14201725f2c">10 hours&nbsp;ago</a>, <a href="/Niners/Bass">Bass</a> wrote</p><p>*snip*</p><p>Approximately exactly.</p><p></p></div></blockquote><p></p><p>Within a few cycles, unlike the hundreds of millions of cycles you'll lose if a single TCP packet en-route gets dropped.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/de9aa902b1764c85aaa0a14300a03d10#de9aa902b1764c85aaa0a14300a03d10</link>
		<pubDate>Fri, 11 Jan 2013 09:43:24 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/de9aa902b1764c85aaa0a14300a03d10#de9aa902b1764c85aaa0a14300a03d10</guid>
		<dc:creator>evildictaitor</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/evildictaitor/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - web api IEnumerable?</title>
		<description><![CDATA[<p>It doesn't matter for performance or features.&nbsp; But you might want to pick the array form just because it takes less space on the screen.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/b95515c6fc914d74b4c4a1440024ab28#b95515c6fc914d74b4c4a1440024ab28</link>
		<pubDate>Sat, 12 Jan 2013 02:13:30 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/b95515c6fc914d74b4c4a1440024ab28#b95515c6fc914d74b4c4a1440024ab28</guid>
		<dc:creator>warren</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/warren/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - web api IEnumerable?</title>
		<description><![CDATA[<p>@<a href="/Forums/Coffeehouse/web-api-IEnumerable#cb95515c6fc914d74b4c4a1440024ab28">warren</a>:</p><p>It's also easier to pronounce.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/fba2c3ef6964407daac5a1440033f440#fba2c3ef6964407daac5a1440033f440</link>
		<pubDate>Sat, 12 Jan 2013 03:09:09 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/web-api-IEnumerable/fba2c3ef6964407daac5a1440033f440#fba2c3ef6964407daac5a1440033f440</guid>
		<dc:creator>Bass</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Bass/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>