<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Dot Net KB (C Sharp(C#)) </title>
    <link>http://dot-net.shareknowledges.com/166/section-Home/Dot-Net-KB.aspx/category/3</link>
    <description>home</description>
    <language>en-US</language>
    <pubDate>Fri, 05 Dec 2008 00:34:24 GMT</pubDate>
    <lastBuildDate>Fri, 05 Dec 2008 00:34:24 GMT</lastBuildDate>
    <generator>Cuyahoga Website Framework</generator>
    <ttl>60</ttl>
    <item>
      <title>Do try...catch blocks hurt runtime performance?</title>
      <link>http://dot-net.shareknowledges.com/166/section-Home/Dot-Net-KB.aspx/10</link>
      <description>Recently, a friend mentioned that someone had told him that writing a try...catch block in C# (or substitute some other .Net language here) resulted in a &amp;quot; huge penalty &amp;quot; in terms of performance compared to if you had not written it. That is, merely writing such a block actually hurt program performance, even if an exception was never thrown. He didn't believe this was true, and rightly so - it's completely wrong. This post is a tidied up...</description>
      <dc:creator>FengLiN</dc:creator>
      <pubDate>Mon, 25 Feb 2008 05:55:59 GMT</pubDate>
      <category>C Sharp(C#)</category>
    </item>
    <item>
      <title>Using C# To Extract Icons from any Files</title>
      <link>http://dot-net.shareknowledges.com/166/section-Home/Dot-Net-KB.aspx/9</link>
      <description>Have you ever seen a file with a pretty icon you wanted to use but you couldn't get a similar one in your program? If yes, try this method &amp;gt;&amp;gt; Icon.ExtractAssociatedIcon here is the code I wrote that works fine, you will also find the sample attached Icon ico; public Form1() { InitializeComponent(); ico = this.Icon; } private void btnGetIcon_Click(object sender, EventArgs e) { if(dlgOpen.ShowDialog() ==...</description>
      <dc:creator>FengLiN</dc:creator>
      <pubDate>Mon, 25 Feb 2008 05:47:00 GMT</pubDate>
      <category>C Sharp(C#)</category>
    </item>
    <item>
      <title>What's new in C# 3.0 </title>
      <link>http://dot-net.shareknowledges.com/166/section-Home/Dot-Net-KB.aspx/8</link>
      <description>In this article, I will cover at a glance the new features of C# 3.0. I have been working with this new development environment for several days and want to share my experience with you Implicit typed local variables Local variables can be declared as type var, whose actual type of the variable is determined by the compiler based on the data schema (see Listing 1). It's mainly used to store anonymous types in LINQ. &amp;nbsp;...</description>
      <dc:creator>FengLiN</dc:creator>
      <pubDate>Thu, 14 Feb 2008 03:26:00 GMT</pubDate>
      <category>C Sharp(C#)</category>
    </item>
    <item>
      <title>the "Using" statement in C#</title>
      <link>http://dot-net.shareknowledges.com/166/section-Home/Dot-Net-KB.aspx/5</link>
      <description> 1. using + namespace: 
So you can use the type under the namespace directly, without type in the full namespace name. similar with Jave's Import. 
Example: using System.Data; 
 
 2. using + Alias Name = full type name. 
when to use: You can use this when you using 2 different namespaces in 1 cs file. but these 2 different namespaces contains a type with same name. 
example: 
using aClass = NameSpace1.MyClass;  
using bClass = NameSpace2.MyClass;...</description>
      <dc:creator>FengLiN</dc:creator>
      <pubDate>Tue, 05 Feb 2008 08:51:23 GMT</pubDate>
      <category>C Sharp(C#)</category>
    </item>
    <item>
      <title>How To Use: System.IO.FileSystemWatcher to monitor the files</title>
      <link>http://dot-net.shareknowledges.com/166/section-Home/Dot-Net-KB.aspx/4</link>
      <description>Today I will talk about the &amp;quot; System.IO.FileSystemWatcher&amp;quot;. It allows you to be notified when a file or directory (folder) has been created, renamed, changed or deleted. You can even sit and wait for such an activity to take place. Ok, Let me show you how to use this class. 1. Create a new object of FileSystemWatcher. System.IO.FileSystemWatcher fswXmlFileWatcher = new System.IO.FileSystemWatcher(); this.fswXmlFileWatcher.EnableRaisingEvents...</description>
      <dc:creator>FengLiN</dc:creator>
      <pubDate>Wed, 30 Jan 2008 06:37:00 GMT</pubDate>
      <category>C Sharp(C#)</category>
    </item>
  </channel>
</rss>