<?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, 13 Jan 2010 16:31:08 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>
