<?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: ThreadPool.QueueUserWorkItem With Multiple Arguments</title>
	<atom:link href="http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/feed/" rel="self" type="application/rss+xml" />
	<link>http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:01:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Shaun Bowe</title>
		<link>http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/comment-page-1/#comment-77527</link>
		<dc:creator>Shaun Bowe</dc:creator>
		<pubDate>Wed, 01 Feb 2012 20:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/#comment-77527</guid>
		<description>Nice work!</description>
		<content:encoded><![CDATA[<p>Nice work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khayralla</title>
		<link>http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/comment-page-1/#comment-47908</link>
		<dc:creator>Khayralla</dc:creator>
		<pubDate>Tue, 10 May 2011 16:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/#comment-47908</guid>
		<description>Greate job, but Action can take four parameters only.
How can you define QueueUserWorkItem with 5 parameters.
Thank you.</description>
		<content:encoded><![CDATA[<p>Greate job, but Action can take four parameters only.<br />
How can you define QueueUserWorkItem with 5 parameters.<br />
Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Easiest Way To Write Async Code &#8211; Reading #FunnelWeblog Code &#124; GuruStop.NET</title>
		<link>http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/comment-page-1/#comment-41073</link>
		<dc:creator>The Easiest Way To Write Async Code &#8211; Reading #FunnelWeblog Code &#124; GuruStop.NET</dc:creator>
		<pubDate>Tue, 15 Mar 2011 23:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/#comment-41073</guid>
		<description>[...] ThreadPool.QueueUserWorkItem With Multiple Arguments [...]</description>
		<content:encoded><![CDATA[<p>[...] ThreadPool.QueueUserWorkItem With Multiple Arguments [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KK</title>
		<link>http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/comment-page-1/#comment-872</link>
		<dc:creator>KK</dc:creator>
		<pubDate>Mon, 08 Sep 2008 07:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/#comment-872</guid>
		<description>Hi It was a nice example,but to pass multiple arguments the callback in QueueUserWorkItem I think we can go like below

Hashtable temp1 = new Hashtable();
Hashtable temp2 = new Hashtable();

ThreadPool.QueueUserWorkItem(delegate{display(temp1,temp2);});

public void display(Hashtable t1,Hashtable t2){
//do something with t1,t2
}

It works for me and i am not sure if we have any pitfalls in the above approach.</description>
		<content:encoded><![CDATA[<p>Hi It was a nice example,but to pass multiple arguments the callback in QueueUserWorkItem I think we can go like below</p>
<p>Hashtable temp1 = new Hashtable();<br />
Hashtable temp2 = new Hashtable();</p>
<p>ThreadPool.QueueUserWorkItem(delegate{display(temp1,temp2);});</p>
<p>public void display(Hashtable t1,Hashtable t2){<br />
//do something with t1,t2<br />
}</p>
<p>It works for me and i am not sure if we have any pitfalls in the above approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valerio.net &#187; Blog Archive &#187; Control.InvokeRequired, DelegateMarshaler and Anonymous Methods</title>
		<link>http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/comment-page-1/#comment-198</link>
		<dc:creator>valerio.net &#187; Blog Archive &#187; Control.InvokeRequired, DelegateMarshaler and Anonymous Methods</dc:creator>
		<pubDate>Fri, 18 Jul 2008 05:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/#comment-198</guid>
		<description>[...] ThreadPool.QueueUserWorkItem With Multiple Arguments  [...]</description>
		<content:encoded><![CDATA[<p>[...] ThreadPool.QueueUserWorkItem With Multiple Arguments  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yossarian</title>
		<link>http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/comment-page-1/#comment-99</link>
		<dc:creator>Yossarian</dc:creator>
		<pubDate>Mon, 30 Jun 2008 08:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/#comment-99</guid>
		<description>Damn, I just came up with this too and was posting it as a reply to the initial post, when I saw you figured it out yourself. :-)

Good work! I really loved this solution and can put it to good use in my work.

Thanks!</description>
		<content:encoded><![CDATA[<p>Damn, I just came up with this too and was posting it as a reply to the initial post, when I saw you figured it out yourself. <img src='http://thevalerios.net/matt/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Good work! I really loved this solution and can put it to good use in my work.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valerio.net &#187; Blog Archive &#187; Use ThreadPool.QueueUserWorkItem With Anonymous Types</title>
		<link>http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/comment-page-1/#comment-87</link>
		<dc:creator>valerio.net &#187; Blog Archive &#187; Use ThreadPool.QueueUserWorkItem With Anonymous Types</dc:creator>
		<pubDate>Tue, 24 Jun 2008 04:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://thevalerios.net/matt/2008/06/threadpoolqueueuserworkitem-with-multiple-arguments/#comment-87</guid>
		<description>[...] ThreadPool.QueueUserWorkItem With Multiple Arguments  [...]</description>
		<content:encoded><![CDATA[<p>[...] ThreadPool.QueueUserWorkItem With Multiple Arguments  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

