<?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"
	>
<channel>
	<title>Comments on: Strongly typed Collections of Abstract Objects</title>
	<atom:link href="http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/</link>
	<description>Todays Tech, one Byte at a time</description>
	<pubDate>Fri, 30 Jul 2010 18:12:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Kevin Fairclough</title>
		<link>http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-125</link>
		<dc:creator>Kevin Fairclough</dc:creator>
		<pubDate>Thu, 20 Nov 2008 15:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-125</guid>
		<description>Looking forward to the post on the reasons for dumping CSLA! As we haven't started our project yet!!</description>
		<content:encoded><![CDATA[<p>Looking forward to the post on the reasons for dumping CSLA! As we haven&#8217;t started our project yet!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Myers</title>
		<link>http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-112</link>
		<dc:creator>Chad Myers</dc:creator>
		<pubDate>Wed, 19 Nov 2008 21:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-112</guid>
		<description>@Ryan:

If there is some reason you need some functionality on IList that isn't on IEnumerable+LINQ, then go head, but make it a read-only IList or a copy list so that people aren't mucking around with your list structure (adding/removing items, etc).

Though I would argue that, most likely, you won't need IList functionality unless there is some 3rd party grid component or something that requires it.

If the worst comes, you could always to .ToArray() or ToList() on the enumerable.</description>
		<content:encoded><![CDATA[<p>@Ryan:</p>
<p>If there is some reason you need some functionality on IList that isn&#8217;t on IEnumerable+LINQ, then go head, but make it a read-only IList or a copy list so that people aren&#8217;t mucking around with your list structure (adding/removing items, etc).</p>
<p>Though I would argue that, most likely, you won&#8217;t need IList functionality unless there is some 3rd party grid component or something that requires it.</p>
<p>If the worst comes, you could always to .ToArray() or ToList() on the enumerable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Kelley</title>
		<link>http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-111</link>
		<dc:creator>Ryan Kelley</dc:creator>
		<pubDate>Wed, 19 Nov 2008 19:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-111</guid>
		<description>@Frank yes, you can get me on twitter as ryankelley</description>
		<content:encoded><![CDATA[<p>@Frank yes, you can get me on twitter as ryankelley</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Mao</title>
		<link>http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-109</link>
		<dc:creator>Frank Mao</dc:creator>
		<pubDate>Wed, 19 Nov 2008 18:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-109</guid>
		<description>I'm glad to hear the reason you are leaving from CLSA. Thanks. 
BTW, do you twitter?</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad to hear the reason you are leaving from CLSA. Thanks.<br />
BTW, do you twitter?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Kelley</title>
		<link>http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-104</link>
		<dc:creator>Ryan Kelley</dc:creator>
		<pubDate>Wed, 19 Nov 2008 13:51:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-104</guid>
		<description>Chad,

Is an IEnumerable what I really want to use? It just seems so useless. I mean you can iterate the collection but that is it. Part of this is just my ignorance I know, because I am used to large list classes that do everything under the sun. 

Also, is it okay for the protected IList to really be an "internal" ilist for mapping purposes?</description>
		<content:encoded><![CDATA[<p>Chad,</p>
<p>Is an IEnumerable what I really want to use? It just seems so useless. I mean you can iterate the collection but that is it. Part of this is just my ignorance I know, because I am used to large list classes that do everything under the sun. </p>
<p>Also, is it okay for the protected IList to really be an &#8220;internal&#8221; ilist for mapping purposes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Myers</title>
		<link>http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-101</link>
		<dc:creator>Chad Myers</dc:creator>
		<pubDate>Wed, 19 Nov 2008 06:21:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfocus2.com/2008/11/strongly-typed-collections-of-abstract-objects/#comment-101</guid>
		<description>Consider not having your IList exposed to the world. This is generally going to lead to other pains (besides the one you have demonstrated here).

In your case, consider having a protected IList and managing what goes in and comes out through public implementations on the individual derived classes.

I.e. IEnumerable GetOrderParts()  on the "CustomOrder" class, and also void AddPartToOrder(CustomPart part, int quantity), etc.

-c</description>
		<content:encoded><![CDATA[<p>Consider not having your IList exposed to the world. This is generally going to lead to other pains (besides the one you have demonstrated here).</p>
<p>In your case, consider having a protected IList and managing what goes in and comes out through public implementations on the individual derived classes.</p>
<p>I.e. IEnumerable GetOrderParts()  on the &#8220;CustomOrder&#8221; class, and also void AddPartToOrder(CustomPart part, int quantity), etc.</p>
<p>-c</p>
]]></content:encoded>
	</item>
</channel>
</rss>
