<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: C#: Wrapping collections vs Extension methods</title>
	<atom:link href="http://www.markhneedham.com/blog/2009/02/23/c-wrapping-collections-vs-extension-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2009/02/23/c-wrapping-collections-vs-extension-methods/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Wrapping collections: Inheritance vs Composition at Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2009/02/23/c-wrapping-collections-vs-extension-methods/comment-page-1/#comment-20461</link>
		<dc:creator>Wrapping collections: Inheritance vs Composition at Mark Needham</dc:creator>
		<pubDate>Thu, 23 Jul 2009 15:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=969#comment-20461</guid>
		<description>[...] wrote previously about the differences between wrapping collections and just creating extension methods to make our use of collections in the code base more descriptive but I&#039;ve noticed in code I&#039;ve been [...]</description>
		<content:encoded><![CDATA[<p>[...] wrote previously about the differences between wrapping collections and just creating extension methods to make our use of collections in the code base more descriptive but I&#8217;ve noticed in code I&#8217;ve been [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PaulBlamire</title>
		<link>http://www.markhneedham.com/blog/2009/02/23/c-wrapping-collections-vs-extension-methods/comment-page-1/#comment-10574</link>
		<dc:creator>PaulBlamire</dc:creator>
		<pubDate>Mon, 23 Feb 2009 14:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=969#comment-10574</guid>
		<description>oops, angle brackets for generic declaration and instantiation stripped, but you get the drift

Paul</description>
		<content:encoded><![CDATA[<p>oops, angle brackets for generic declaration and instantiation stripped, but you get the drift</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PaulBlamire</title>
		<link>http://www.markhneedham.com/blog/2009/02/23/c-wrapping-collections-vs-extension-methods/comment-page-1/#comment-10573</link>
		<dc:creator>PaulBlamire</dc:creator>
		<pubDate>Mon, 23 Feb 2009 14:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=969#comment-10573</guid>
		<description>Hi,

Another benefit of wrapping is you can implement an interface on the wrapper so that you can mock calls to the methods it exposes.

Daniel Cazzulino has a good article on the subject,

http://www.clariusconsulting.net/blogs/kzu/archive/2009/02/19/Makingextensionmethodsamenabletomocking.aspx

I think if you applied similar logic you would end up with code like

IEnumerable foos = new List();
foos.Finders().FindBy(id);

Regards,
Paul</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Another benefit of wrapping is you can implement an interface on the wrapper so that you can mock calls to the methods it exposes.</p>
<p>Daniel Cazzulino has a good article on the subject,</p>
<p><a href="http://www.clariusconsulting.net/blogs/kzu/archive/2009/02/19/Makingextensionmethodsamenabletomocking.aspx" rel="nofollow">http://www.clariusconsulting.net/blogs/kzu/archive/2009/02/19/Makingextensionmethodsamenabletomocking.aspx</a></p>
<p>I think if you applied similar logic you would end up with code like</p>
<p>IEnumerable foos = new List();<br />
foos.Finders().FindBy(id);</p>
<p>Regards,<br />
Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>

