<?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: What&#8217;s The Point Of Delegates In .NET?</title>
	<atom:link href="http://lostechies.com/derickbailey/2008/10/09/what-s-the-point-of-delegates-in-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/derickbailey/2008/10/09/what-s-the-point-of-delegates-in-net/</link>
	<description>Better Than Yesterday</description>
	<lastBuildDate>Fri, 17 May 2013 03:30:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: derick.bailey</title>
		<link>http://lostechies.com/derickbailey/2008/10/09/what-s-the-point-of-delegates-in-net/#comment-13</link>
		<dc:creator>derick.bailey</dc:creator>
		<pubDate>Tue, 14 Oct 2008 20:03:57 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2008/10/09/what-s-the-point-of-delegates-in-net.aspx#comment-13</guid>
		<description>@OJ

The very nature of delegates will always be a delayed execution of the code they point to, no matter the intended use of the delegate.

public void Foo(Action bar)
{
   bar();
}

or 

Action bar = new Action(someMethod);
bar();

these are the most basic examples of using a delegate, and both of them are illustrations of delayed code execution - whether it&#039;s one wait cycle that is imperceptable by a human is irrelevant. The runtime is delaying the execution of the delegate&#039;s target until the delegate is invoked.</description>
		<content:encoded><![CDATA[<p>@OJ</p>
<p>The very nature of delegates will always be a delayed execution of the code they point to, no matter the intended use of the delegate.</p>
<p>public void Foo(Action bar)<br />
{<br />
   bar();<br />
}</p>
<p>or </p>
<p>Action bar = new Action(someMethod);<br />
bar();</p>
<p>these are the most basic examples of using a delegate, and both of them are illustrations of delayed code execution &#8211; whether it&#8217;s one wait cycle that is imperceptable by a human is irrelevant. The runtime is delaying the execution of the delegate&#8217;s target until the delegate is invoked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OJ</title>
		<link>http://lostechies.com/derickbailey/2008/10/09/what-s-the-point-of-delegates-in-net/#comment-12</link>
		<dc:creator>OJ</dc:creator>
		<pubDate>Tue, 14 Oct 2008 02:31:14 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2008/10/09/what-s-the-point-of-delegates-in-net.aspx#comment-12</guid>
		<description>I think that your summation is PART of the answer, but not an answer as a whole. Delegates are used in scenarios where you are not delaying the execution of code, such as varying functionality based on state.</description>
		<content:encoded><![CDATA[<p>I think that your summation is PART of the answer, but not an answer as a whole. Delegates are used in scenarios where you are not delaying the execution of code, such as varying functionality based on state.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maxim</title>
		<link>http://lostechies.com/derickbailey/2008/10/09/what-s-the-point-of-delegates-in-net/#comment-11</link>
		<dc:creator>Maxim</dc:creator>
		<pubDate>Fri, 10 Oct 2008 12:37:14 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2008/10/09/what-s-the-point-of-delegates-in-net.aspx#comment-11</guid>
		<description>Never thought about the &quot;delaying execution&quot;. Hummm thanks :)

</description>
		<content:encoded><![CDATA[<p>Never thought about the &#8220;delaying execution&#8221;. Hummm thanks :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Quednau</title>
		<link>http://lostechies.com/derickbailey/2008/10/09/what-s-the-point-of-delegates-in-net/#comment-10</link>
		<dc:creator>Frank Quednau</dc:creator>
		<pubDate>Fri, 10 Oct 2008 06:22:14 +0000</pubDate>
		<guid isPermaLink="false">/blogs/derickbailey/archive/2008/10/09/what-s-the-point-of-delegates-in-net.aspx#comment-10</guid>
		<description>Indeed, that characteristic of delegates came useful to an idea we are developing, which is basically a set of classes providing configuration APIs for setting up hierarchies of Windows Forms Controls. You don&#039;t really want to create the Control hierarchy when you are using the config API, instead delegates are set up in the proper way, and once the user calls the Setup(Control c) method all Action&lt;Control&gt; delegates created during the configuration can be executed. This also provides the advantage that youc an reuse such a Control Setup instance.</description>
		<content:encoded><![CDATA[<p>Indeed, that characteristic of delegates came useful to an idea we are developing, which is basically a set of classes providing configuration APIs for setting up hierarchies of Windows Forms Controls. You don&#8217;t really want to create the Control hierarchy when you are using the config API, instead delegates are set up in the proper way, and once the user calls the Setup(Control c) method all Action<control> delegates created during the configuration can be executed. This also provides the advantage that youc an reuse such a Control Setup instance.</control></p>
]]></content:encoded>
	</item>
</channel>
</rss>
