<?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: Anonymous Constructor in C#</title>
	<atom:link href="http://www.techartifact.com/blogs/2009/08/anonymous-constructor-in-c.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techartifact.com/blogs/2009/08/anonymous-constructor-in-c.html</link>
	<description>Techie blog</description>
	<lastBuildDate>Tue, 07 Sep 2010 10:41:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Sean</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-constructor-in-c.html/comment-page-1#comment-932</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Mon, 17 Aug 2009 18:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=855#comment-932</guid>
		<description>@Ankit, here is a bit of information from the C# 3.0 language specification on Collection Initializers:

The following is an example of an object creation expression that includes a collection initializer:
List digits = new List { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
The collection object to which a collection initializer is applied must be of a type that implements System.Collections.IEnumerable or a compile-time error occurs. For each specified element in order, the collection initializer invokes an Add method on the target object with the expression list of the element initializer as argument list, applying normal overload resolution for each invocation. Thus, the collection object must contain an applicable Add method for each element initializer.</description>
		<content:encoded><![CDATA[<p>@Ankit, here is a bit of information from the C# 3.0 language specification on Collection Initializers:</p>
<p>The following is an example of an object creation expression that includes a collection initializer:<br />
List digits = new List { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };<br />
The collection object to which a collection initializer is applied must be of a type that implements System.Collections.IEnumerable or a compile-time error occurs. For each specified element in order, the collection initializer invokes an Add method on the target object with the expression list of the element initializer as argument list, applying normal overload resolution for each invocation. Thus, the collection object must contain an applicable Add method for each element initializer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Ritchie</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-constructor-in-c.html/comment-page-1#comment-931</link>
		<dc:creator>Peter Ritchie</dc:creator>
		<pubDate>Mon, 17 Aug 2009 16:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=855#comment-931</guid>
		<description>I think what Sean is saying is, what you&#039;ve described is only Object Initializers, not Anonymous Constructors.  I.e. the constructor is named and any number of objects can be created and initialized because there is no anonymous constructor.</description>
		<content:encoded><![CDATA[<p>I think what Sean is saying is, what you&#8217;ve described is only Object Initializers, not Anonymous Constructors.  I.e. the constructor is named and any number of objects can be created and initialized because there is no anonymous constructor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit Goyal</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-constructor-in-c.html/comment-page-1#comment-930</link>
		<dc:creator>Ankit Goyal</dc:creator>
		<pubDate>Mon, 17 Aug 2009 15:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=855#comment-930</guid>
		<description>Yes if one carefully reads the article object initializer is also mentioned in the article.

And can u plzz tell an example of collection initializer and how are they useful?</description>
		<content:encoded><![CDATA[<p>Yes if one carefully reads the article object initializer is also mentioned in the article.</p>
<p>And can u plzz tell an example of collection initializer and how are they useful?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-constructor-in-c.html/comment-page-1#comment-929</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Mon, 17 Aug 2009 14:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=855#comment-929</guid>
		<description>That&#039;s called Object Initialization, not an anonymous constructor. C# 3.0 also added Collection Initialization.</description>
		<content:encoded><![CDATA[<p>That&#8217;s called Object Initialization, not an anonymous constructor. C# 3.0 also added Collection Initialization.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PimpThisBlog.com</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-constructor-in-c.html/comment-page-1#comment-926</link>
		<dc:creator>PimpThisBlog.com</dc:creator>
		<pubDate>Mon, 17 Aug 2009 10:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=855#comment-926</guid>
		<description>&lt;strong&gt;Anonymous Constructor in C# &#124; TechArtifact...&lt;/strong&gt;

Thank you for submitting this cool story - Trackback from PimpThisBlog.com...</description>
		<content:encoded><![CDATA[<p><strong>Anonymous Constructor in C# | TechArtifact&#8230;</strong></p>
<p>Thank you for submitting this cool story &#8211; Trackback from PimpThisBlog.com&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
