<?xml version="1.0" encoding="iso-8859-1"?>
<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/">
	<channel>
		<title>Code Library</title>
		<link>http://chatwithchirag.forumotion.com/code-library-f4/-t1.htm</link>
		<description>Code Library for our use</description>
		<lastBuildDate>Sat, 20 Oct 2007 11:45:25 GMT</lastBuildDate>
		<ttl>10</ttl>
		<image>
			<title>Code Library</title>
			<url>http://illiweb.com/fa/prosilver_grey/site_logo.gif</url>
			<link>http://chatwithchirag.forumotion.com/code-library-f4/-t1.htm</link>
		</image>
		<item>
			<title>GetMIMEType simple and reusable</title>
			<link>http://chatwithchirag.forumotion.com/code-library-f4/getmimetype-simple-and-reusable-t5.htm</link>
			<dc:creator>justchirag</dc:creator>
			<description>public static string GetMIMEType(FileInfo f)

        {

            RegistryPermission regPermission = new RegistryPermission(RegistryPermissionAccess.Read, &quot;\\HKEY_CLASSES_ROOT&quot;);

            RegistryKey classRoot = Registry.ClassesRoot;

            //FileInfo f = new FileInfo(filePath);

            string extension = f.Extension.ToLower();

            RegistryKey typeKey = classRoot.OpenSubKey(@&quot;MIME\Database\Content Type&quot;);

            string mimeType = string.Empty;

  ...</description>
			<category>Code Library</category>
			<pubDate>Sat, 20 Oct 2007 11:45:25 GMT</pubDate>
			<comments>http://chatwithchirag.forumotion.com/code-library-f4/getmimetype-simple-and-reusable-t5.htm#5</comments>
			<guid>http://chatwithchirag.forumotion.com/code-library-f4/getmimetype-simple-and-reusable-t5.htm</guid>
		</item>
	</channel>
</rss>