<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wacdesigns &#187; Exception</title>
	<atom:link href="http://www.wacdesigns.com/tag/exception/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wacdesigns.com</link>
	<description>What about Creativity ?</description>
	<lastBuildDate>Fri, 02 Dec 2011 11:50:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Exception: Collection was modified; enumeration operation may not execute.</title>
		<link>http://www.wacdesigns.com/2008/05/28/collection-was-modified-enumeration-operation-may-not-execute/</link>
		<comments>http://www.wacdesigns.com/2008/05/28/collection-was-modified-enumeration-operation-may-not-execute/#comments</comments>
		<pubDate>Wed, 28 May 2008 03:00:37 +0000</pubDate>
		<dc:creator>jf</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Exception]]></category>

		<guid isPermaLink="false">http://www.wacdesigns.com/?p=80</guid>
		<description><![CDATA[It&#8217;s been a while that i didn&#8217;t get this Exception, while working, and yesterday, while I was performing some test on a new module that I implemented i got this exception. I knew i did get it sometimes back last year, and managed to solve it. So here is one solution when you are dealing [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while that i didn&#8217;t get this Exception, while working, and yesterday, while I was performing some test on  a new module that I implemented i got this exception. I knew i did get it sometimes back last year, and managed to solve it. So here is one solution when you are dealing with this kind of issue:</p>
<pre>

IList&lt;Product&gt; productList = new List&lt;Product&gt;();
productList.Add(new Product("Some product 1");
productList.Add(new Product("Some product 2");
productList.Add(new Product("Some product 3");
productList.Add(new Product("Some product 4");
</pre>
<pre>

for(int i=(productList.Count -1); i &gt;= 0; i--)
{
//Perform Edit, Update, Delete Operation using for .. i loop in reverse order
}
</pre>
<p>There is a list of other solutions that can be found on the following websites:<br />
<a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=372532&amp;SiteID=1" target="_blank">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=372532&amp;SiteID=1</a><br />
<a href="http://forums.asp.net/p/1147145/1861164.aspx" target="_self">http://forums.asp.net/p/1147145/1861164.aspx</a><br />
<a href="http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/Q_21585534.html" target="_blank">http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/Q_21585534.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wacdesigns.com/2008/05/28/collection-was-modified-enumeration-operation-may-not-execute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.wacdesigns.com/tag/exception/feed/ ) in 0.96113 seconds, on Feb 4th, 2012 at 8:53 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 11th, 2012 at 8:53 am UTC -->
