09 2005 档案
摘要:有的时候看到论坛上有人为了把英文的DayOfWeek枚举转化成中文,用switch进行一个一个替换,其实不需要这么麻烦。。。如下: string [] Day=new string []{"星期日","星期一","星期二","星期三","星期四","星期五","星期六"};Console.WriteLine(Day[Convert.ToInt16(DateTime.Now.DayOfWeek)])...
阅读全文
摘要:using System;namespace Test{ class Class1 { /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) { string [] arrs=new string...
阅读全文