<?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>Solomon &#187; Solomon</title>
	<atom:link href="http://www.ms.oyangudi.com/blog/author/manoh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ms.oyangudi.com/blog</link>
	<description>from Oyangudi...</description>
	<lastBuildDate>Tue, 18 Oct 2011 02:38:17 +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>Android Internals</title>
		<link>http://www.ms.oyangudi.com/blog/video-tutorials/android-internals/</link>
		<comments>http://www.ms.oyangudi.com/blog/video-tutorials/android-internals/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 02:38:17 +0000</pubDate>
		<dc:creator>Solomon</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Video Tutorials]]></category>

		<guid isPermaLink="false">http://www.ms.oyangudi.com/blog/?p=331</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/MlxiQNijniQ?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/MlxiQNijniQ?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/1_H4AlQaNa0?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/1_H4AlQaNa0?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><span style="text-align:center; display: block;"><a href="http://www.ms.oyangudi.com/blog/video-tutorials/android-internals/"><img src="http://img.youtube.com/vi/rFqELLB1Kk8/2.jpg" alt="" /></a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ms.oyangudi.com/blog/video-tutorials/android-internals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Application Development</title>
		<link>http://www.ms.oyangudi.com/blog/video-tutorials/android-application-development/</link>
		<comments>http://www.ms.oyangudi.com/blog/video-tutorials/android-application-development/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 02:36:52 +0000</pubDate>
		<dc:creator>Solomon</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Video Tutorials]]></category>

		<guid isPermaLink="false">http://www.ms.oyangudi.com/blog/?p=329</guid>
		<description><![CDATA[&#160;]]></description>
			<content:encoded><![CDATA[<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/0gELwUFooaQ?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/0gELwUFooaQ?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/lESZqCflB0o?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/lESZqCflB0o?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/Mf7z_mrce00?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Mf7z_mrce00?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/7DQ4CRSBwLo?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7DQ4CRSBwLo?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/FP2gElnwTSs?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/FP2gElnwTSs?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/yfWsp9IHX1Y?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/yfWsp9IHX1Y?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/Kkoh3gFMKQA?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Kkoh3gFMKQA?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/E3rQCB7IDsA?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/E3rQCB7IDsA?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/aRhos52bZGA?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/aRhos52bZGA?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/uzJmi59b6oI?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/uzJmi59b6oI?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/rkN1ed35314?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/rkN1ed35314?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/SW82-YOOMIs?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/SW82-YOOMIs?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/FDpawCaXNjo?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/FDpawCaXNjo?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/v61A90qlK9s?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/v61A90qlK9s?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/jd_V7a6xhQc?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jd_V7a6xhQc?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/3yt506_MBmU?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/3yt506_MBmU?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/VN3srmr70iY?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/VN3srmr70iY?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/wJOt0ANLOn0?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/wJOt0ANLOn0?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/T-Qwvcq6nAk?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/T-Qwvcq6nAk?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ms.oyangudi.com/blog/video-tutorials/android-application-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Application Development &#8211; Publishing to Android Market</title>
		<link>http://www.ms.oyangudi.com/blog/video-tutorials/android-application-development-publishing-to-android-market/</link>
		<comments>http://www.ms.oyangudi.com/blog/video-tutorials/android-application-development-publishing-to-android-market/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 02:31:44 +0000</pubDate>
		<dc:creator>Solomon</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Video Tutorials]]></category>

		<guid isPermaLink="false">http://www.ms.oyangudi.com/blog/?p=327</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><span style="text-align:center; display: block;"><a href="http://www.ms.oyangudi.com/blog/video-tutorials/android-application-development-publishing-to-android-market/"><img src="http://img.youtube.com/vi/FDpawCaXNjo/2.jpg" alt="" /></a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ms.oyangudi.com/blog/video-tutorials/android-application-development-publishing-to-android-market/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Builders Summit</title>
		<link>http://www.ms.oyangudi.com/blog/video-tutorials/android-builders-summit/</link>
		<comments>http://www.ms.oyangudi.com/blog/video-tutorials/android-builders-summit/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 02:28:01 +0000</pubDate>
		<dc:creator>Solomon</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Video Tutorials]]></category>

		<guid isPermaLink="false">http://www.ms.oyangudi.com/blog/?p=324</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/ygP3_1Lzrj4?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ygP3_1Lzrj4?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><span style="text-align:center; display: block;"><a href="http://www.ms.oyangudi.com/blog/video-tutorials/android-builders-summit/"><img src="http://img.youtube.com/vi/vBY6SW0Txsc/2.jpg" alt="" /></a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ms.oyangudi.com/blog/video-tutorials/android-builders-summit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android for Java Developers</title>
		<link>http://www.ms.oyangudi.com/blog/video-tutorials/android-for-java-developers/</link>
		<comments>http://www.ms.oyangudi.com/blog/video-tutorials/android-for-java-developers/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 01:58:12 +0000</pubDate>
		<dc:creator>Solomon</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Video Tutorials]]></category>

		<guid isPermaLink="false">http://www.ms.oyangudi.com/blog/?p=318</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/XFRS5j3BOkw?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/XFRS5j3BOkw?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/hcxIchfpHfU?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/hcxIchfpHfU?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/vUXyBB-V_GM?version=3&#038;feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vUXyBB-V_GM?version=3&#038;feature=oembed" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><span style="text-align:center; display: block;"><a href="http://www.ms.oyangudi.com/blog/video-tutorials/android-for-java-developers/"><img src="http://img.youtube.com/vi/Ok7pJgzfQOY/2.jpg" alt="" /></a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ms.oyangudi.com/blog/video-tutorials/android-for-java-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not enough storage is available to complete this operation</title>
		<link>http://www.ms.oyangudi.com/blog/net-compact-framework/not-enough-storage-is-available-to-complete-this-operation/</link>
		<comments>http://www.ms.oyangudi.com/blog/net-compact-framework/not-enough-storage-is-available-to-complete-this-operation/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 02:52:09 +0000</pubDate>
		<dc:creator>Solomon</dc:creator>
				<category><![CDATA[.NET Compact Framework]]></category>

		<guid isPermaLink="false">http://www.ms.oyangudi.com/blog/?p=300</guid>
		<description><![CDATA[http://msdn.microsoft.com/en-us/library/ms681382%28VS.85%29.aspx ERROR_OUTOFMEMORY 14 (0xE) &#8211; Not enough storage is available to complete this operation. http://stackoverflow.com/questions/2881419/not-enough-storage-is-available-to-complete-this-operation-program-or-storage-m http://social.msdn.microsoft.com/Forums/en/sqlce/thread/06f90b9c-9c19-499e-b016-c161949251bc http://msdn.microsoft.com/en-us/library/aa454885.aspx#effective_memory_storage_power_mgmt_wm5_topic2 http://support.microsoft.com/kb/326164 &#160;]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/ms681382%28VS.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms681382%28VS.85%29.aspx</a></p>
<dl>
<dt>ERROR_OUTOFMEMORY 14 (0xE) &#8211; Not enough storage is available to complete this operation.</dt>
</dl>
<ul>
<li><a href="http://stackoverflow.com/questions/2881419/not-enough-storage-is-available-to-complete-this-operation-program-or-storage-m" target="_blank">http://stackoverflow.com/questions/2881419/not-enough-storage-is-available-to-complete-this-operation-program-or-storage-m</a></li>
<li><a href="http://social.msdn.microsoft.com/Forums/en/sqlce/thread/06f90b9c-9c19-499e-b016-c161949251bc" target="_blank">http://social.msdn.microsoft.com/Forums/en/sqlce/thread/06f90b9c-9c19-499e-b016-c161949251bc</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/aa454885.aspx#effective_memory_storage_power_mgmt_wm5_topic2" target="_blank">http://msdn.microsoft.com/en-us/library/aa454885.aspx#effective_memory_storage_power_mgmt_wm5_topic2</a></li>
<li><a href="http://support.microsoft.com/kb/326164" target="_blank">http://support.microsoft.com/kb/326164</a></li>
</ul>
<p>&nbsp;</p>
<dl>
<dt>
</dt>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.ms.oyangudi.com/blog/net-compact-framework/not-enough-storage-is-available-to-complete-this-operation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Consider using System.IO.Path.Combine() instead of string concatenation</title>
		<link>http://www.ms.oyangudi.com/blog/csharp/consider-using-system-io-path-combine-instead-of-string-concatenation/</link>
		<comments>http://www.ms.oyangudi.com/blog/csharp/consider-using-system-io-path-combine-instead-of-string-concatenation/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 17:54:49 +0000</pubDate>
		<dc:creator>Solomon</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.ms.oyangudi.com/blog/?p=297</guid>
		<description><![CDATA[http://dotnettipoftheday.org/tips/SystemIOPathCombine.aspx Let&#8217;s review the following code for creating a file path: This code is prone to error. For example, when you set the folder setting, you have to remember to make sure it ends with a slash. To avoid such problems use Path.Combine() method which will ensure that the folder has ending slash:]]></description>
			<content:encoded><![CDATA[<p><a href="http://dotnettipoftheday.org/tips/SystemIOPathCombine.aspx" target="_blank">http://dotnettipoftheday.org/tips/SystemIOPathCombine.aspx</a></p>
<p>Let&#8217;s review the following code for creating a file path:</p>
<pre class="brush: csharp; title: ; notranslate">
    public string GetFullPath(string fileName)
    {
        string folder = ConfigurationManager.AppSettings[&quot;MyFolder&quot;];
        return folder + fileName;
    }
</pre>
<p>This code is prone to error. For example, when you set the folder setting, you have to remember to make sure it ends with a slash. To avoid such problems use Path.Combine() method which will ensure that the folder has ending slash:</p>
<pre class="brush: csharp; title: ; notranslate">
    public string GetFullPath(string filename)
    {
        string folder = ConfigurationManager.AppSettings[&quot;MyFolder&quot;];
        return Path.Combine(folder, filename);
    }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ms.oyangudi.com/blog/csharp/consider-using-system-io-path-combine-instead-of-string-concatenation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use Path.GetRandomFileName() or Path.GetTempFileName() when working with temp files</title>
		<link>http://www.ms.oyangudi.com/blog/net/use-path-getrandomfilename-or-path-gettempfilename-when-working-with-temp-files/</link>
		<comments>http://www.ms.oyangudi.com/blog/net/use-path-getrandomfilename-or-path-gettempfilename-when-working-with-temp-files/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 17:52:06 +0000</pubDate>
		<dc:creator>Solomon</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.ms.oyangudi.com/blog/?p=295</guid>
		<description><![CDATA[http://dotnettipoftheday.org/tips/PathGetRandomFileName.aspx &#160; Do not reinvent function for generating unique name for temporary files. Use one of the existing methods: System.IO.Path.GetTempFileName() &#8211; use this method if you want to create temporary file in user&#8217;s temp folder. System.IO.Path.GetRandomFileName() &#8211; use this method if you just want to generate unique file name.]]></description>
			<content:encoded><![CDATA[<p><a href="http://dotnettipoftheday.org/tips/PathGetRandomFileName.aspx" target="_blank">http://dotnettipoftheday.org/tips/PathGetRandomFileName.aspx</a></p>
<p>&nbsp;</p>
<p>Do not reinvent function for generating unique name for temporary files. Use one of the existing methods:</p>
<ul>
<li><a href="http://msdn2.microsoft.com/en-us/library/system.io.path.gettempfilename.aspx">System.IO.Path.GetTempFileName()</a> &#8211; use this method if you want to create temporary file in user&#8217;s temp folder.</li>
<li><a href="http://msdn2.microsoft.com/en-us/library/system.io.path.getrandomfilename.aspx">System.IO.Path.GetRandomFileName()</a> &#8211; use this method if you just want to generate unique file name.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ms.oyangudi.com/blog/net/use-path-getrandomfilename-or-path-gettempfilename-when-working-with-temp-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>?? operator (C#)</title>
		<link>http://www.ms.oyangudi.com/blog/csharp/operator-c/</link>
		<comments>http://www.ms.oyangudi.com/blog/csharp/operator-c/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 17:48:41 +0000</pubDate>
		<dc:creator>Solomon</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.ms.oyangudi.com/blog/?p=291</guid>
		<description><![CDATA[http://dotnettipoftheday.org/tips/double_question_mark_operator_cs.aspx &#160; The ?? operator returns the left-hand operand if it is not null, or else it returns the right operand. For example: The ?? operator also works with reference types:]]></description>
			<content:encoded><![CDATA[<p><a href="http://dotnettipoftheday.org/tips/double_question_mark_operator_cs.aspx" target="_blank">http://dotnettipoftheday.org/tips/double_question_mark_operator_cs.aspx</a></p>
<p>&nbsp;</p>
<p>The <strong>??</strong> operator returns the left-hand operand if it is not null, or else it returns the right operand. For example:</p>
<pre class="brush: csharp; title: ; notranslate">
int? x = null;

...

// y = x, unless x is null, in which case y = -1.

int y = x ?? -1;
</pre>
<p>The <strong>??</strong> operator also works with reference types:</p>
<pre class="brush: csharp; title: ; notranslate">
//message = param, unless param is null
//in which case message = &quot;No message&quot;
string message = param ?? &quot;No message&quot;;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ms.oyangudi.com/blog/csharp/operator-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed testing in .NET &#8211; System.Diagnostics.Stopwatch</title>
		<link>http://www.ms.oyangudi.com/blog/net/speed-testing-in-net-system-diagnostics-stopwatch/</link>
		<comments>http://www.ms.oyangudi.com/blog/net/speed-testing-in-net-system-diagnostics-stopwatch/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 17:45:44 +0000</pubDate>
		<dc:creator>Solomon</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.ms.oyangudi.com/blog/?p=288</guid>
		<description><![CDATA[http://dotnettipoftheday.org/tips/system_diagnostics_stopwatch.aspx System.Diagnostics.Stopwatch is a replacement for what most people probably do to identify the time spent on excecuting a method. The process usually goes something like: create a DateTime.Now value at the start and then subtract the ending DateTime.Now to get the TimeDuration value that elapsed. As an alternative, the Stopwatch class was built using [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dotnettipoftheday.org/tips/system_diagnostics_stopwatch.aspx" target="_blank">http://dotnettipoftheday.org/tips/system_diagnostics_stopwatch.aspx</a></p>
<p>System.Diagnostics.Stopwatch is a replacement for what most people probably do to identify the time spent on excecuting a method. The process usually goes something like: create a DateTime.Now value at the start and then subtract the ending DateTime.Now to get the TimeDuration value that elapsed.</p>
<p>As an alternative, the Stopwatch class was built using low-level API calls, with less overhead than other .NET methods. If the hardware and Windows version of the computer support a high-resolution performance counter, it will use this counter instead of the standard PC clock.</p>
<p>Here is a simple example:</p>
<pre class="brush: csharp; title: ; notranslate">

System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();

watch.Start();

//do my stuff
...

watch.Stop();

MessageBox.Show(&quot;Time spent: &quot; + watch.Elapsed.ToString());
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ms.oyangudi.com/blog/net/speed-testing-in-net-system-diagnostics-stopwatch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

