<?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>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
	<atom:link href="http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=replace-your-collections-with-ienumerablet</link>
	<description></description>
	<lastBuildDate>Tue, 08 May 2012 09:13:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/comment-page-2/#comment-64341</link>
		<dc:creator>Aa</dc:creator>
		<pubDate>Tue, 11 Oct 2011 07:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/#comment-64341</guid>
		<description>    MsgPanel.Visible=true;
            viewPlaceHolder.Visible = false;
            imgsearch.Visible = false;
            txtsearch.Visible = false;
            Msg.Visible = true;
            Msg.Text = &quot;Enter the Role code and then click Next!&quot;;
            addPlaceHolder.Visible = true;
            viewPlaceHolder.Visible = false;
            Msg.ForeColor = System.Drawing.Color.Red;</description>
		<content:encoded><![CDATA[<p>    MsgPanel.Visible=true;<br />
            viewPlaceHolder.Visible = false;<br />
            imgsearch.Visible = false;<br />
            txtsearch.Visible = false;<br />
            Msg.Visible = true;<br />
            Msg.Text = &#8220;Enter the Role code and then click Next!&#8221;;<br />
            addPlaceHolder.Visible = true;<br />
            viewPlaceHolder.Visible = false;<br />
            Msg.ForeColor = System.Drawing.Color.Red;</p>
]]></content:encoded>
	</item>
	<item>
		<title>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/comment-page-1/#comment-31363</link>
		<dc:creator>io</dc:creator>
		<pubDate>Thu, 04 Sep 2008 06:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/#comment-31363</guid>
		<description>o</description>
		<content:encoded><![CDATA[<p>o</p>
]]></content:encoded>
	</item>
	<item>
		<title>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/comment-page-1/#comment-20029</link>
		<dc:creator>?? (21-4-2008) &#124; ????? .NET Atlantis</dc:creator>
		<pubDate>Mon, 21 Apr 2008 06:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/#comment-20029</guid>
		<description>[...] Replace your Collections with IEnumerable ???LinQ???? [...]</description>
		<content:encoded><![CDATA[<p>[...] Replace your Collections with IEnumerable ???LinQ???? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/comment-page-1/#comment-19647</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 10 Apr 2008 17:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/#comment-19647</guid>
		<description>The main reason I can see for moving a method that returns a Collection or List to returning an IEnumerable is that you then have the use of the yield keyword.

http://flimflan.com/blog/ThePowerOfYieldReturn.aspx

Joshua is better at explaining things than I am.</description>
		<content:encoded><![CDATA[<p>The main reason I can see for moving a method that returns a Collection or List to returning an IEnumerable is that you then have the use of the yield keyword.</p>
<p><a href="http://flimflan.com/blog/ThePowerOfYieldReturn.aspx" rel="nofollow">http://flimflan.com/blog/ThePowerOfYieldReturn.aspx</a></p>
<p>Joshua is better at explaining things than I am.</p>
]]></content:encoded>
	</item>
	<item>
		<title>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/comment-page-1/#comment-19547</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 09 Apr 2008 00:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/#comment-19547</guid>
		<description>@trasa I didn&#039;t mean from properties. and yes, arrays implement IList but  IList.Add?  Please don&#039;t try that on your array.  In my experience it&#039;s easiest for the consumer to just handle the array, new List(tArr); .. but I could be swayed.  I&#039;ll play with it.</description>
		<content:encoded><![CDATA[<p>@trasa I didn&#8217;t mean from properties. and yes, arrays implement IList but  IList.Add?  Please don&#8217;t try that on your array.  In my experience it&#8217;s easiest for the consumer to just handle the array, new List(tArr); .. but I could be swayed.  I&#8217;ll play with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/comment-page-1/#comment-19497</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #68</dc:creator>
		<pubDate>Tue, 08 Apr 2008 07:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/#comment-19497</guid>
		<description>[...] Replace your Collections with IEnumerable&lt;T&gt; - Tony Rasa looks at moving from concrete collection classes in his API to IEnumerable&lt;T&gt; [...]</description>
		<content:encoded><![CDATA[<p>[...] Replace your Collections with IEnumerable&lt;T&gt; &#8211; Tony Rasa looks at moving from concrete collection classes in his API to IEnumerable&lt;T&gt; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/comment-page-1/#comment-19482</link>
		<dc:creator>Chris Brandsma</dc:creator>
		<pubDate>Tue, 08 Apr 2008 02:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/#comment-19482</guid>
		<description>I&#039;ve been doing this for a while now.  You should always try to pass the most basic object you can to between layers.

But something I have been wondering about these days, when I&#039;m passing data between layers (say between a view and a presenter), do you just stick with passing primitives, or do you create a specialized data class?

If you stick with primitives you end up with a more complex interface between the objects.  Also, if you create a special data object you can keep the data interaction better in mind for what is intended to happen.   On the down side, you now have another tiny class to manage.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been doing this for a while now.  You should always try to pass the most basic object you can to between layers.</p>
<p>But something I have been wondering about these days, when I&#8217;m passing data between layers (say between a view and a presenter), do you just stick with passing primitives, or do you create a specialized data class?</p>
<p>If you stick with primitives you end up with a more complex interface between the objects.  Also, if you create a special data object you can keep the data interaction better in mind for what is intended to happen.   On the down side, you now have another tiny class to manage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/comment-page-1/#comment-19480</link>
		<dc:creator>Sean Timm</dc:creator>
		<pubDate>Mon, 07 Apr 2008 22:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/#comment-19480</guid>
		<description>Okay... it removed all of my nice generics markup... argh.  Before everyone starts yelling at me for not using generics, I was referring to ICollection(T), IList(T), and IEnumerable(T).</description>
		<content:encoded><![CDATA[<p>Okay&#8230; it removed all of my nice generics markup&#8230; argh.  Before everyone starts yelling at me for not using generics, I was referring to ICollection(T), IList(T), and IEnumerable(T).</p>
]]></content:encoded>
	</item>
	<item>
		<title>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/comment-page-1/#comment-19479</link>
		<dc:creator>Sean Timm</dc:creator>
		<pubDate>Mon, 07 Apr 2008 22:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/#comment-19479</guid>
		<description>If you&#039;re passing around a collection where you know you&#039;ll be frequently accessing the count, I&#039;d argue that you should just be returning ICollection.  Do you want to be able to index into it?  IList.  The extension methods can be nice where someone returned you an IEnumerable, and it turns out that you want to know the count.  Internally, it&#039;ll just call the Count() method if it&#039;s an ICollection underneath.  Otherwise, it&#039;ll enumerate through them to get a count.

All that being said, I&#039;ve personally refactored some code to move to IEnumerable where I *knew* I&#039;d be accessing a Count at one point, but it was a Count that needed to disappear at some point, so I was okay with it.  :)</description>
		<content:encoded><![CDATA[<p>If you&#8217;re passing around a collection where you know you&#8217;ll be frequently accessing the count, I&#8217;d argue that you should just be returning ICollection.  Do you want to be able to index into it?  IList.  The extension methods can be nice where someone returned you an IEnumerable, and it turns out that you want to know the count.  Internally, it&#8217;ll just call the Count() method if it&#8217;s an ICollection underneath.  Otherwise, it&#8217;ll enumerate through them to get a count.</p>
<p>All that being said, I&#8217;ve personally refactored some code to move to IEnumerable where I *knew* I&#8217;d be accessing a Count at one point, but it was a Count that needed to disappear at some point, so I was okay with it.  <img src='http://elegantcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>BUY Cefaclor ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/comment-page-1/#comment-19477</link>
		<dc:creator>trasa</dc:creator>
		<pubDate>Mon, 07 Apr 2008 21:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/04/07/replace-your-collections-with-ienumerablet/#comment-19477</guid>
		<description>Mostly, its just a matter of personal style.

There is an FxCop rule warning about returning arrays from properties, the issue being that an outside caller gets a reference to your array, and can alter it and therefore alter the state of your class: http://msdn2.microsoft.com/en-us/library/0fss9skc.aspx

For methods: an array implements IList, so returning an array is really just a step or so away from my original starting place of returning Collection&lt;T&gt; or List&lt;T&gt;.  Returning a more abstract type than an array gives you more options for extensibility - you could replace the array with another collection type that had more implementation.  This is only a factor if you&#039;ve got developers out there &quot;in the cloud&quot; who rely on your return type - if its not a big deal to make breaking changes, then it doesn&#039;t matter so much.</description>
		<content:encoded><![CDATA[<p>Mostly, its just a matter of personal style.</p>
<p>There is an FxCop rule warning about returning arrays from properties, the issue being that an outside caller gets a reference to your array, and can alter it and therefore alter the state of your class: <a href="http://msdn2.microsoft.com/en-us/library/0fss9skc.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/0fss9skc.aspx</a></p>
<p>For methods: an array implements IList, so returning an array is really just a step or so away from my original starting place of returning Collection<t> or List</t><t>.  Returning a more abstract type than an array gives you more options for extensibility &#8211; you could replace the array with another collection type that had more implementation.  This is only a factor if you&#8217;ve got developers out there &#8220;in the cloud&#8221; who rely on your return type &#8211; if its not a big deal to make breaking changes, then it doesn&#8217;t matter so much.</t></p>
]]></content:encoded>
	</item>
</channel>
</rss>

