Popular Posts
ADD ... THEN ... UNTIL ... data: begin of SERIES, N1 type I value 10, N2 type I value 20, N3 type I value 30, N4 type I value 40, ... Join related table and count rows or sum sql server 2005 count rows: SELECT * FROM Table1 LEFT JOIN     (SELECT Level1ID, COUNT(Level2ID) AS Total FROM Table2 GROUP BY Level1ID) AS... Remove file not in list
Stats
Extension method
class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine(StringExtension.UrlEncodeMethod("中文"));
        Console.WriteLine("中文".UrlEncode());
        Console.Read();
    }
}


static class StringExtension
{
    public static string UrlEncodeMethod(string s)
    {
        return HttpUtility.UrlEncode(s);
    }

    public static string UrlEncode(this string s)
    {
        return HttpUtility.UrlEncode(s);
    }
}