<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Nimesh's Blogs</title>
	<atom:link href="http://nimesh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nimesh.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 05 Nov 2007 09:06:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nimesh.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Nimesh's Blogs</title>
		<link>http://nimesh.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nimesh.wordpress.com/osd.xml" title="Nimesh&#039;s Blogs" />
	<atom:link rel='hub' href='http://nimesh.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Execute Commands From C#</title>
		<link>http://nimesh.wordpress.com/2007/11/05/execute-commands-from-c/</link>
		<comments>http://nimesh.wordpress.com/2007/11/05/execute-commands-from-c/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 09:06:09 +0000</pubDate>
		<dc:creator>nimesh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nimesh.wordpress.com/2007/11/05/execute-commands-from-c/</guid>
		<description><![CDATA[I usually run across the need to execute commands or run applications during the installation or configuration of an application. I&#8217;ve found this technique very useful in place of using batch files. You have a much more robust environment to work with and you don&#8217;t have to worry about someone modifying your batch file. For [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=12&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I usually run across the need to execute commands or run applications during the installation or configuration of an application. I&#8217;ve found this technique very useful in place of using batch files. You have a much more robust environment to work with and you don&#8217;t have to worry about someone modifying your batch file. For this example, I&#8217;m just going to show you how execute a command that you would normally use in a Command Prompt. I normally include a function like the following in a static utility class so that it is accessible from anywhere in the application.</p>
<p><span class="codeKeyword">public</span> <span class="codeKeyword">static</span> <span class="codeKeyword">int</span> ExecuteCommand(<span class="codeKeyword">string</span> Command, <span class="codeKeyword">int</span> Timeout)<br />
{<br />
   <span class="codeKeyword">int</span> ExitCode;<br />
   ProcessStartInfo ProcessInfo;<br />
   Process Process;</p>
<p>   ProcessInfo = <span class="codeKeyword">new</span> ProcessStartInfo(&#8220;cmd.exe&#8221;, &#8220;/C &#8221; + Command);<br />
   ProcessInfo.CreateNoWindow = <span class="codeKeyword">true</span>;<br />
   ProcessInfo.UseShellExecute = <span class="codeKeyword">false</span>;<br />
   Process = Process.Start(ProcessInfo);<br />
   Process.WaitForExit(Timeout);<br />
   ExitCode = Process.ExitCode;<br />
   Process.Close();</p>
<p>   <span class="codeKeyword">return</span> ExitCode;<br />
}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nimesh.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nimesh.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nimesh.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nimesh.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nimesh.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nimesh.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nimesh.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nimesh.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nimesh.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nimesh.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nimesh.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nimesh.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nimesh.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nimesh.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nimesh.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nimesh.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=12&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nimesh.wordpress.com/2007/11/05/execute-commands-from-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f991c0834501f66f9484621ca3c73411?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nimesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Unique Sorting ({ 1, 1, 5, 5, 5, 9, 3, 3, 3, 9, 9, 9,2 })</title>
		<link>http://nimesh.wordpress.com/2007/04/18/unique-sorting-1-1-5-5-5-9-3-3-3-9-9-92/</link>
		<comments>http://nimesh.wordpress.com/2007/04/18/unique-sorting-1-1-5-5-5-9-3-3-3-9-9-92/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 12:51:54 +0000</pubDate>
		<dc:creator>nimesh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nimesh.wordpress.com/2007/04/18/unique-sorting-1-1-5-5-5-9-3-3-3-9-9-92/</guid>
		<description><![CDATA[Steps for unique sorting: 1. Create console application . 2. Copy following method in &#8216;Main&#8217; method:   int[] DataArray = { 1, 1, 5, 5, 5, 9, 3, 3, 3, 9, 9, 9,2 }; int[] SortedUniqueData = MakeUnique(DataArray);for (int i = 0; i &#60; SortedUniqueData.Length ; i++){ Console.WriteLine(&#8220;Sorted value : {0}&#8221;, SortedUniqueData[i]);} Console.ReadLine(); 3. Copy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=11&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Steps for unique sorting:</p>
<p>1. Create console application .</p>
<p>2. Copy following method in &#8216;Main&#8217; method:</p>
<p>  <font size="2" color="#0000ff">int<font size="2">[] DataArray = { 1, 1, 5, 5, 5, 9, 3, 3, 3, 9, 9, 9,2 };</font></p>
<p></font><font size="2" color="#0000ff">int</font><font size="2">[] SortedUniqueData = MakeUnique(DataArray);</font><font size="2" color="#0000ff">for</font><font size="2"> (</font><font size="2" color="#0000ff">int</font><font size="2"> i = 0; i &lt; SortedUniqueData.Length ; i++)</font><font size="2">{</p>
<p></font><font size="2" color="#2b91af">Console</font><font size="2">.WriteLine(</font><font size="2" color="#a31515">&#8220;Sorted value : {0}&#8221;</font><font size="2">, SortedUniqueData[i]);</font><font size="2">}</p>
<p><font size="2" color="#2b91af">Console</font><font size="2">.ReadLine(); </font></p>
<p></font><font size="2">3. Copy following method to outside &#8216;Main&#8217; method , but within the same class:</font></p>
<p><font size="2"><font size="2" color="#0000ff">static</font><font size="2"> T[] MakeUnique&lt;T&gt;(T[] values)</font></font><font size="2">{</p>
<p>System.Collections.Generic.</font><font size="2" color="#2b91af">Dictionary</font><font size="2">&lt;T, </font><font size="2" color="#0000ff">bool</font><font size="2">&gt; dict;</font><font size="2">dict = <font size="2" color="#0000ff">new</font><font size="2"> System.Collections.Generic.</font><font size="2" color="#2b91af">Dictionary</font><font size="2">&lt;T, </font><font size="2" color="#0000ff">bool</font><font size="2">&gt;();</font></p>
<p></font><font size="2" color="#0000ff">foreach</font><font size="2"> (T value </font><font size="2" color="#0000ff">in</font><font size="2"> values)</font><font size="2"><font size="2" color="#0000ff">if</font><font size="2"> (!dict.ContainsKey(value)) dict.Add(value, </font><font size="2" color="#0000ff">false</font><font size="2">);</font></p>
<p></font><font size="2" color="#2b91af">List</font><font size="2">&lt;T&gt; newDict = </font><font size="2" color="#0000ff">new</font><font size="2"> </font><font size="2" color="#2b91af">List</font><font size="2">&lt;T&gt;(dict.Keys);</font><font size="2">newDict.Sort();</p>
<p></font><font size="2" color="#0000ff">return</font><font size="2"> newDict.ToArray();</font><font size="2">}</p>
<p>4. Now run the application, u will get unique sorting result.</p>
<p>  cheearo man</p>
<p></font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nimesh.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nimesh.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nimesh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nimesh.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nimesh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nimesh.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nimesh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nimesh.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nimesh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nimesh.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nimesh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nimesh.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nimesh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nimesh.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nimesh.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nimesh.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=11&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nimesh.wordpress.com/2007/04/18/unique-sorting-1-1-5-5-5-9-3-3-3-9-9-92/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f991c0834501f66f9484621ca3c73411?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nimesh</media:title>
		</media:content>
	</item>
		<item>
		<title>.Net Micro Framework 2.0</title>
		<link>http://nimesh.wordpress.com/2007/04/18/net-micro-framework-20/</link>
		<comments>http://nimesh.wordpress.com/2007/04/18/net-micro-framework-20/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 10:06:34 +0000</pubDate>
		<dc:creator>nimesh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nimesh.wordpress.com/2007/04/18/net-micro-framework-20/</guid>
		<description><![CDATA[The Microsoft .NET Micro Framework is an environment that extends the advantages of Microsoft .NET and the toolset in the Microsoft Visual Studio development system into a class of smaller, less expensive, and more resource-constrained devices than previously possible with other Microsoft embedded offerings.  http://msdn2.microsoft.com/en-us/embedded/bb267253.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=10&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Microsoft .NET Micro Framework is an environment that extends the advantages of Microsoft .NET and the toolset in the Microsoft Visual Studio development system into a class of smaller, less expensive, and more resource-constrained devices than previously possible with other Microsoft embedded offerings.</p>
<p> <a href="http://msdn2.microsoft.com/en-us/embedded/bb267253.aspx">http://msdn2.microsoft.com/en-us/embedded/bb267253.aspx</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nimesh.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nimesh.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nimesh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nimesh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nimesh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nimesh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nimesh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nimesh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nimesh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nimesh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nimesh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nimesh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nimesh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nimesh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nimesh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nimesh.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=10&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nimesh.wordpress.com/2007/04/18/net-micro-framework-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f991c0834501f66f9484621ca3c73411?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nimesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between exe and assembly</title>
		<link>http://nimesh.wordpress.com/2007/04/09/difference-between-exe-and-assembly/</link>
		<comments>http://nimesh.wordpress.com/2007/04/09/difference-between-exe-and-assembly/#comments</comments>
		<pubDate>Mon, 09 Apr 2007 12:08:34 +0000</pubDate>
		<dc:creator>nimesh</dc:creator>
				<category><![CDATA[.Net FAQ]]></category>

		<guid isPermaLink="false">http://nimesh.wordpress.com/2007/04/09/difference-between-exe-and-assembly/</guid>
		<description><![CDATA[   1. EXE contains entry-point through which we can execute exe file. while dll doesnot contain entry-point. so we cant execute it.    2. EXE is a executable file which runs in seperate process managed by os. while dll is       a dynamic link library (link at runtime) which used in exe or in other [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=9&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>   1. EXE contains entry-point through which we can execute exe file. while dll doesnot contain entry-point. so we cant execute it.<br />
   2. EXE is a executable file which runs in seperate process managed by os. while dll is<br />
      a dynamic link library (link at runtime) which used in exe or in other dll files.<br />
   3. EXE is an out-process file and dll is a in-process file.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nimesh.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nimesh.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nimesh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nimesh.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nimesh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nimesh.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nimesh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nimesh.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nimesh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nimesh.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nimesh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nimesh.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nimesh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nimesh.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nimesh.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nimesh.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=9&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nimesh.wordpress.com/2007/04/09/difference-between-exe-and-assembly/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f991c0834501f66f9484621ca3c73411?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nimesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between process and service</title>
		<link>http://nimesh.wordpress.com/2007/04/09/difference-between-process-and-service/</link>
		<comments>http://nimesh.wordpress.com/2007/04/09/difference-between-process-and-service/#comments</comments>
		<pubDate>Mon, 09 Apr 2007 12:04:55 +0000</pubDate>
		<dc:creator>nimesh</dc:creator>
				<category><![CDATA[.Net FAQ]]></category>

		<guid isPermaLink="false">http://nimesh.wordpress.com/2007/04/09/difference-between-process-and-service/</guid>
		<description><![CDATA[when we start machine, service starts in background automatically although user doesnt log in. while any application starts by user will start process. A process is any piece of software that is running on a computer. Some processes are services in that the start up when the computer starts. No user has to log on to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=8&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>when we start machine, service starts in background automatically although user doesnt log in. while any application starts by user will start process.</p>
<p>A process is any piece of software that is running on a computer. Some processes are services in that the start up when the computer starts. No user has to log on to start them. An &#8220;application&#8221; is generally a process that a user has to start.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nimesh.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nimesh.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nimesh.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nimesh.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nimesh.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nimesh.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nimesh.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nimesh.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nimesh.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nimesh.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nimesh.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nimesh.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nimesh.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nimesh.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nimesh.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nimesh.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=8&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nimesh.wordpress.com/2007/04/09/difference-between-process-and-service/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f991c0834501f66f9484621ca3c73411?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nimesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Problem with ClientScript.RegisterClientScriptBlock when using Ajax</title>
		<link>http://nimesh.wordpress.com/2007/04/09/problem-with-clientscriptregisterclientscriptblock-when-using-ajax/</link>
		<comments>http://nimesh.wordpress.com/2007/04/09/problem-with-clientscriptregisterclientscriptblock-when-using-ajax/#comments</comments>
		<pubDate>Mon, 09 Apr 2007 12:02:55 +0000</pubDate>
		<dc:creator>nimesh</dc:creator>
				<category><![CDATA[Ajax]]></category>

		<guid isPermaLink="false">http://nimesh.wordpress.com/2007/04/09/problem-with-clientscriptregisterclientscriptblock-when-using-ajax/</guid>
		<description><![CDATA[There’s a breaking change in the beta. to insert scripts during a partial postback youmust use the registerXXX static methods of the scriptmanager class.  e.g. Microsoft.Web.UI.ScriptManager.RegisterClientScriptBlock(DropDownList1, typeof(DropDownList),“TestKey”,” alert(’TEst Key’); “,true);<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=6&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="snap_preview">There’s a breaking change in the beta. to insert scripts during a partial postback youmust use the registerXXX static methods of the scriptmanager class. </p>
<p>e.g.<br />
<font size="2">Microsoft.Web.UI.</font><font size="2" color="#008080">ScriptManager</font><font size="2">.RegisterClientScriptBlock(DropDownList1, </font><font size="2" color="#0000ff">typeof</font><font size="2">(</font><font size="2" color="#008080">DropDownList</font><font size="2">),</font><font size="2" color="#800000">“TestKey”</font><font size="2">,</font><font size="2" color="#800000">” alert(’TEst Key’); “</font><font size="2">,</font><font size="2" color="#0000ff">true</font><font size="2">);</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nimesh.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nimesh.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nimesh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nimesh.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nimesh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nimesh.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nimesh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nimesh.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nimesh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nimesh.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nimesh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nimesh.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nimesh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nimesh.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nimesh.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nimesh.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=6&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nimesh.wordpress.com/2007/04/09/problem-with-clientscriptregisterclientscriptblock-when-using-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f991c0834501f66f9484621ca3c73411?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nimesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Anonymous Methods in C#</title>
		<link>http://nimesh.wordpress.com/2007/04/09/anonymous-methods-in-c/</link>
		<comments>http://nimesh.wordpress.com/2007/04/09/anonymous-methods-in-c/#comments</comments>
		<pubDate>Mon, 09 Apr 2007 12:02:00 +0000</pubDate>
		<dc:creator>nimesh</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://nimesh.wordpress.com/2007/04/09/anonymous-methods-in-c/</guid>
		<description><![CDATA[You must be aware of delegates if you have worked in C# before. Even then let me describe delegates my way. Delegates are objects that encapsulate the reference to functions. Implementation of Event Handler code is one of the best examples of delegates. When we double click on a button on the form to add [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=5&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">You must be aware of delegates if you have worked in C# before. Even then let me describe delegates my way. Delegates are objects that encapsulate the reference to functions. Implementation of Event Handler code is one of the best examples of delegates.</p>
<p class="MsoNormal">When we double click on a button on the form to add the handler for that button’s click event, the windows form generate two separate codes. The actual event Handler and a hidden code (found in the designer code) to wire-up the button clicks event.</p>
<p class="MsoNormal">The code outputted is like this.</p>
<p><span style="font-size:10pt;color:green;font-family:'Courier New';">private void button1_Click(<br />
  object sender, System.EventArgs e)<br />
{ }</span>and<span style="font-size:10pt;color:green;font-family:'Courier New';"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:green;font-family:'Courier New';">this.button1.Click +=   new System.EventHandler(<br />
  this.button1_Click);</span></p>
<p class="MsoBodyText">[Note: The Signature for the button click event handler is defined in the System.EventHandler delegate]</p>
<p class="MsoNormal">We can simplify this a bit by using anonymous method. We can create the whole handler method inline without defining a method name. We will still require the patameters.</p>
<p class="MsoNormal"><span style="font-size:10pt;color:green;font-family:'Courier New';">this.button1.Click += <br />
  delegate(object sender, EventArgs e)<br />
  {    };</span></p>
<p class="MsoNormal">Here you can see there is no method name and we are not delegating the event to another method instead writing the method inline.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nimesh.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nimesh.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nimesh.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nimesh.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nimesh.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nimesh.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nimesh.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nimesh.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nimesh.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nimesh.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nimesh.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nimesh.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nimesh.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nimesh.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nimesh.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nimesh.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=5&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nimesh.wordpress.com/2007/04/09/anonymous-methods-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f991c0834501f66f9484621ca3c73411?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nimesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Static Class &#8211; A When to use class</title>
		<link>http://nimesh.wordpress.com/2007/04/09/static-class-a-when-to-use-class/</link>
		<comments>http://nimesh.wordpress.com/2007/04/09/static-class-a-when-to-use-class/#comments</comments>
		<pubDate>Mon, 09 Apr 2007 11:58:58 +0000</pubDate>
		<dc:creator>nimesh</dc:creator>
				<category><![CDATA[OOPs]]></category>

		<guid isPermaLink="false">http://nimesh.wordpress.com/2007/04/09/static-class-a-when-to-use-class/</guid>
		<description><![CDATA[We use static class when we have to separate data and behavior that will be independent of any object identity. The data and functions do not change regardless of what happens to the object.   A static class can only contain static members. We cannot create an instance of a static class. Static class is always [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=7&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="snap_preview">We use static class when we have to separate data and behavior that will be independent of any object identity. The data and functions do not change regardless of what happens to the object.  </p>
<p class="MsoNormal">A static class can only contain static members. We cannot create an instance of a static class. Static class is always sealed and they cannot contain instance constructor. Hence we can also say that creating a static class is nearly same as creating a class with only static members and a private constructor (private constructor prevents the class from being instantiated).</p>
<p class="MsoNormal">The advantage of using the static class is that compiler can check that no instance of the class is accidentally added. The complier will not allow any instance class of a static class. We also cannot inherit a static class since it is sealed. Static class do not have constructor, but can still declare static constructor to set up the initial values.</p>
<p class="MsoNormal">Static class also makes the implementation simpler and faster since we do not have make and instance of the class to call its method.<span>  </span>An example of good use of static class would be a class like math, which does all the mathematic function, or a currency converter class to convert currency class for converting the currency.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/nimesh.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/nimesh.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nimesh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nimesh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nimesh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nimesh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nimesh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nimesh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nimesh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nimesh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nimesh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nimesh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nimesh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nimesh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nimesh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nimesh.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nimesh.wordpress.com&amp;blog=656178&amp;post=7&amp;subd=nimesh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nimesh.wordpress.com/2007/04/09/static-class-a-when-to-use-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f991c0834501f66f9484621ca3c73411?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nimesh</media:title>
		</media:content>
	</item>
	</channel>
</rss>
