摘要: String.Format("{0,-10}",str);//这个表示第一个参数str字符串的宽度为10,左对齐String.Format("{0,10}",str);//这个表示第一个参数str字符串的宽度为10,右对齐参考:From MSDNFormat Item SyntaxEach format item takes the following form and consists of the following components:{index[,alignment][:formatString]}The matching braces (& 阅读全文
posted @ 2011-09-02 23:01 OYJJ 阅读(18574) 评论(0) 推荐(1) 编辑
摘要: class Program { static void Main(string[] args) { Console.WriteLine("****************************************************************\n"); Console.WriteLine("Http Response Header Resolver V1.00.00\n"); Console.WriteLine("input a url for example:w... 阅读全文
posted @ 2011-09-02 22:54 OYJJ 阅读(5080) 评论(0) 推荐(0) 编辑