<?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: An indexed foreach for .aspx Web Forms</title>
	<atom:link href="http://finite.mikeandcorinne.com/2008/03/an-indexed-foreach-for-aspx-web-forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://finite.mikeandcorinne.com/2008/03/an-indexed-foreach-for-aspx-web-forms/</link>
	<description>Mike&#039;s thoughts on programming and tech</description>
	<lastBuildDate>Tue, 16 Mar 2010 23:25:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: jimi</title>
		<link>http://finite.mikeandcorinne.com/2008/03/an-indexed-foreach-for-aspx-web-forms/comment-page-1/#comment-13</link>
		<dc:creator>jimi</dc:creator>
		<pubDate>Wed, 25 Jun 2008 09:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeandcorinne.com/finite/2008/03/11/an-indexed-foreach-for-aspx-web-forms/#comment-13</guid>
		<description>Hi there - stumbled across this while looking for something totally unrelated to the above post. however, it caught my interest as i too &#039;loathe&#039; putting in repeaters (or any &#039;logic&#039; for that matter) in the aspx page. however, i had an issue in being able to use the code as i&#039;m not sure of the namespaces required to make all of this work. Here&#039;s the code that i pasted into a default blank default.aspx.cs page:

        protected void Foreach(IEnumerable enumerable, Proc action)
        {
            int i = 0;
            foreach(T t in enumerable)
            {
                action(t, i);
                i++;
            }
        }

(i had to add the colon after i++;). however, it still tells me that it &#039;wants&#039; an assembly for this to work. please tell this idiot what he&#039;s missing :)

thanks - btw, some great photos too!!!</description>
		<content:encoded><![CDATA[<p>Hi there &#8211; stumbled across this while looking for something totally unrelated to the above post. however, it caught my interest as i too &#8216;loathe&#8217; putting in repeaters (or any &#8216;logic&#8217; for that matter) in the aspx page. however, i had an issue in being able to use the code as i&#8217;m not sure of the namespaces required to make all of this work. Here&#8217;s the code that i pasted into a default blank default.aspx.cs page:</p>
<p>        protected void Foreach(IEnumerable enumerable, Proc action)<br />
        {<br />
            int i = 0;<br />
            foreach(T t in enumerable)<br />
            {<br />
                action(t, i);<br />
                i++;<br />
            }<br />
        }</p>
<p>(i had to add the colon after i++;). however, it still tells me that it &#8216;wants&#8217; an assembly for this to work. please tell this idiot what he&#8217;s missing <img src='http://finite.mikeandcorinne.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>thanks &#8211; btw, some great photos too!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
