<?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>Ryan Cromwell &#187; Languages</title>
	<atom:link href="http://blog.cromwellhaus.com/index.php/category/languages/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cromwellhaus.com</link>
	<description>Improving my craft...</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:06:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Action(Of T) Lambdas in VB</title>
		<link>http://blog.cromwellhaus.com/2009/03/action-of-t-lambdas-in-vb/</link>
		<comments>http://blog.cromwellhaus.com/2009/03/action-of-t-lambdas-in-vb/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 17:49:03 +0000</pubDate>
		<dc:creator>cromwellryan</dc:creator>
				<category><![CDATA[Languages]]></category>

		<guid isPermaLink="false">/blogs/ryanc/archive/2009/03/30/action-of-t-lambdas-in-vb.aspx</guid>
		<description><![CDATA[Until VB catches up with C# in the lambda support realm, here is how you can accomplish those Moq or Rhino.Mocks style verifications in VB: dim someSub as Action(Of double) = AddressOf mockObject.SomeSub Rhino.Mocks.Expect.Call( someSub) It’s very frustrating going from the full support in C# to VB, but I’m finding sufficient workaround for most items.&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Until VB catches up with C# in the lambda support realm, here is how you can accomplish those <a href="http://code.google.com/p/moq/" target="_blank">Moq</a> or <a href="http://ayende.com/projects/rhino-mocks.aspx" target="_blank">Rhino.Mocks</a> style verifications in VB:</p>
<pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #fbfbfb; min-height: 40px; padding-left: 5px; width: 640px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px">
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"><span style="color: #0000ff">dim</span> someSub <span style="color: #0000ff">as</span> Action(<span style="color: #0000ff">Of</span> <span style="color: #0000ff">double</span>) = <span style="color: #0000ff">AddressOf</span> mockObject.SomeSub
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px">Rhino.Mocks.Expect.<span style="color: #0000ff">Call</span>( someSub)
</pre>
<pre style="background-color: #fbfbfb; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 12px"></pre>
</pre>
<p>It’s very frustrating going from the full support in C# to VB, but I’m finding sufficient workaround for most items.&#160; I shouldn’t be so hard on VB.&#160; C# doesn’t support inline of Xml which is pretty friggin’ sweet.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cromwellhaus.com/2009/03/action-of-t-lambdas-in-vb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

