<?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: MS MVC Gets Blocks From Rails</title>
	<atom:link href="http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/</link>
	<description>Abstract &#38;&#38; Concrete</description>
	<pubDate>Tue, 06 Jan 2009 08:14:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Technical Jargon &#187; Helpers for the MS MVC Framework</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-13070</link>
		<dc:creator>Technical Jargon &#187; Helpers for the MS MVC Framework</dc:creator>
		<pubDate>Wed, 25 Jun 2008 19:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-13070</guid>
		<description>[...] rendering (see this post on Adam Tybor&#8217;s blog for more [...]</description>
		<content:encoded><![CDATA[<p>[...] rendering (see this post on Adam Tybor&#8217;s blog for more [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justice~!</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-44</link>
		<dc:creator>Justice~!</dc:creator>
		<pubDate>Tue, 08 Jan 2008 23:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-44</guid>
		<description>I like the page you are serving up there ;)

I just started going back through these entries in prep for the eventual return of my machine (still don't have it).</description>
		<content:encoded><![CDATA[<p>I like the page you are serving up there <img src='http://abombss.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
I just started going back through these entries in prep for the eventual return of my machine (still don&#8217;t have it).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Tybor</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-33</link>
		<dc:creator>Adam Tybor</dc:creator>
		<pubDate>Thu, 03 Jan 2008 03:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-33</guid>
		<description>Thanks Phil,

That solution is much better.  Jeremy pointed that one out too.

Thank God for blogs, otherwise we would have some ugly code with reflection, type caching, and dynamic methods.</description>
		<content:encoded><![CDATA[<p>Thanks Phil,</p>
<p>That solution is much better.  Jeremy pointed that one out too.</p>
<p>Thank God for blogs, otherwise we would have some ugly code with reflection, type caching, and dynamic methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haacked</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-29</link>
		<dc:creator>Haacked</dc:creator>
		<pubDate>Wed, 02 Jan 2008 18:27:34 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-29</guid>
		<description>I sent an email to Sergio with another approach to do this that doesn't require reflection. I used a Response Filter and well timed calls to Flush().</description>
		<content:encoded><![CDATA[<p>I sent an email to Sergio with another approach to do this that doesn&#8217;t require reflection. I used a Response Filter and well timed calls to Flush().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Skinner</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-28</link>
		<dc:creator>Jeremy Skinner</dc:creator>
		<pubDate>Sat, 29 Dec 2007 20:50:08 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-28</guid>
		<description>Hmm...the comment box seems to have lost my angle brackets. That last line was supposed to say "I was surprised that %= % didn’t call Response.Write directly"</description>
		<content:encoded><![CDATA[<p>Hmm&#8230;the comment box seems to have lost my angle brackets. That last line was supposed to say &#8220;I was surprised that %= % didn’t call Response.Write directly&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Skinner</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-27</link>
		<dc:creator>Jeremy Skinner</dc:creator>
		<pubDate>Sat, 29 Dec 2007 20:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-27</guid>
		<description>Hi Adam,

It turns out that _w references the same instance as Response.Output so I used a custom Stream object and set the Response.Filter property to intercept each call to _w.Write. This works so long as Response.Buffer is set to false.

Its certainly a hack...but I'm not sure if its more or less of a hack than using reflection. I was surprised that  didn't call Response.Write directly. That would have made things much easier ;)</description>
		<content:encoded><![CDATA[<p>Hi Adam,</p>
<p>It turns out that _w references the same instance as Response.Output so I used a custom Stream object and set the Response.Filter property to intercept each call to _w.Write. This works so long as Response.Buffer is set to false.</p>
<p>Its certainly a hack&#8230;but I&#8217;m not sure if its more or less of a hack than using reflection. I was surprised that  didn&#8217;t call Response.Write directly. That would have made things much easier <img src='http://abombss.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Tybor</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-26</link>
		<dc:creator>Adam Tybor</dc:creator>
		<pubDate>Sat, 29 Dec 2007 20:23:34 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-26</guid>
		<description>@Jeremy
You mentioned you were already doing something similar, how are you switching the writers to capture the output?

VB.Net support is going to be tough.   Just googling the issue it already seems to be problem for vb guys because so many examples now are c# with anonymous delegates and now lambdas.  I don't think the using pattern will work, it almost seems like you will need a separate function in a script block for the delegate.  As I understand it, you should still be able to switch writers so you can move in out of &lt;% %&gt; blocks to get the same effect.</description>
		<content:encoded><![CDATA[<p>@Jeremy<br />
You mentioned you were already doing something similar, how are you switching the writers to capture the output?</p>
<p>VB.Net support is going to be tough.   Just googling the issue it already seems to be problem for vb guys because so many examples now are c# with anonymous delegates and now lambdas.  I don&#8217;t think the using pattern will work, it almost seems like you will need a separate function in a script block for the delegate.  As I understand it, you should still be able to switch writers so you can move in out of < % %> blocks to get the same effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Skinner</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-25</link>
		<dc:creator>Jeremy Skinner</dc:creator>
		<pubDate>Sat, 29 Dec 2007 15:59:14 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-25</guid>
		<description>MVB....pfft ;)

I agree with you about lambdas. I was quite disappointed to that VB only has a half-hearted implementation.</description>
		<content:encoded><![CDATA[<p>MVB&#8230;.pfft <img src='http://abombss.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
I agree with you about lambdas. I was quite disappointed to that VB only has a half-hearted implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio Pereira</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-24</link>
		<dc:creator>Sergio Pereira</dc:creator>
		<pubDate>Sat, 29 Dec 2007 15:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-24</guid>
		<description>VB?? Who uses that ? :) It's MVC, not MVB :)
It's been years since I stopped tracking VB features and I'm really shocked to learn that VB still doesn't have anonymous methods. I'm glad I don't do VB anymore because having used lambdas now I'm hooked up on it and I wish I'll never have to use a language that doesn't have them anymore.
Any VB expert to suggest an alternative syntax or what would be a natural syntax for VB? Maybe the "Using() ... End Using" block?</description>
		<content:encoded><![CDATA[<p>VB?? Who uses that ? <img src='http://abombss.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> It&#8217;s MVC, not MVB <img src='http://abombss.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> It&#8217;s been years since I stopped tracking VB features and I&#8217;m really shocked to learn that VB still doesn&#8217;t have anonymous methods. I&#8217;m glad I don&#8217;t do VB anymore because having used lambdas now I&#8217;m hooked up on it and I wish I&#8217;ll never have to use a language that doesn&#8217;t have them anymore.<br />
Any VB expert to suggest an alternative syntax or what would be a natural syntax for VB? Maybe the &#8220;Using() &#8230; End Using&#8221; block?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Skinner</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-23</link>
		<dc:creator>Jeremy Skinner</dc:creator>
		<pubDate>Sat, 29 Dec 2007 15:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-23</guid>
		<description>Hi Adam

I really like this approach - I've been using a similar technique for some helpers I've been working on.

One issue that comes to mind is that VB does not support multi-line lambdas. If this becomes part of MvcContrib, do you think it would be a good idea to support an alternative syntax for VB users, or leave this as a C#-only feature?

Cheers,

Jeremy</description>
		<content:encoded><![CDATA[<p>Hi Adam</p>
<p>I really like this approach - I&#8217;ve been using a similar technique for some helpers I&#8217;ve been working on.</p>
<p>One issue that comes to mind is that VB does not support multi-line lambdas. If this becomes part of MvcContrib, do you think it would be a good idea to support an alternative syntax for VB users, or leave this as a C#-only feature?</p>
<p>Cheers,</p>
<p>Jeremy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Pierce</title>
		<link>http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-22</link>
		<dc:creator>Bill Pierce</dc:creator>
		<pubDate>Sat, 29 Dec 2007 14:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://abombss.com/blog/2007/12/28/ms-mvc-gets-blocks-from-rails/#comment-22</guid>
		<description>Beautiful.</description>
		<content:encoded><![CDATA[<p>Beautiful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
