只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2013-05-22 14:25 蓝晓 阅读(2) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2013-05-20 16:14 蓝晓 阅读(6) 评论(0) 推荐(0) 编辑
摘要: readonly关键字与const关键字不同。const字段只能在该字段的声明中初始化。readonly字段可以在声明或构造函数中初始化。因此,根据所使用的构造函数,readonly字段可能具有不同的值。另外,const字段为编译时常数,而readonly字段可用于运行时常数,如下例所示: public class ReadOnlyTest { class SampleClass { public int x; // Initialize a readonly field public readonly ... 阅读全文
posted @ 2013-05-17 17:43 蓝晓 阅读(141) 评论(0) 推荐(0) 编辑
摘要: HTML DOM 定义了访问和操作 HTML 文档的标准方法。(Document Object Model,DOM)http://www.w3school.com.cn/htmldom/index.asphttp://www.w3.org/DOM/The Document Object Model is a platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure and style o 阅读全文
posted @ 2013-05-17 14:41 蓝晓 阅读(130) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/hyddd/archive/2009/07/20/1526777.html一.什么是Attribute先看下面的三段代码:1.自定义Attribute类:VersionAttribute [AttributeUsage(AttributeTargets.Class)] public class VersionAttribute : Attribute { public string Name { get; set; } public string Date { get; set; } pu... 阅读全文
posted @ 2013-05-17 10:12 蓝晓 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1,从System.String[]转到List<System.String>System.String[] str={"str","string","abc"};List<System.String> listS=new List<System.String>(str);2, 从List<System.String>转到System.String[]List<System.String> listS=new List<System.String>();listS 阅读全文
posted @ 2013-05-14 17:14 蓝晓 阅读(574) 评论(0) 推荐(0) 编辑
摘要: List<int> 转 string [] http://blog.sina.com.cn/s/blog_54b14bb80100xvl1.html转载▼今天有同事问这个问题,就是说,存在一个list<int>: 1,2,3,4,5,6,7希望可以转换成字符串:“1,2,3,4,5,6,7”using System;using System.Collections.Generic;using System.Linq;using System.Text;using test2;namespace test{class Program{static void Main(st 阅读全文
posted @ 2013-05-14 16:59 蓝晓 阅读(757) 评论(0) 推荐(0) 编辑
摘要: http://www.infoq.com/cn/news/2011/07/selenium-arch-2 阅读全文
posted @ 2013-05-13 19:43 蓝晓 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 方法一:Convert.ToDateTime(string)string格式有要求,必须是yyyy-MM-dd hh:mm:ss================================================方法二:Convert.ToDateTime(string, IFormatProvider)DateTime dt;DateTimeFormatInfo dtFormat = new System.GlobalizationDateTimeFormatInfo();dtFormat.ShortDatePattern = "yyyy/MM/dd";dt 阅读全文
posted @ 2013-05-07 15:23 蓝晓 阅读(187) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/jerryhu/archive/2009/11/10/1599963.htmlhttp://dotnetperls.com/datetime-formatProblem. You need help with DateTime formatting strings in C# or .NET languages. The framework provides powerful formatting capabilities, but the syntax is confusing and there are some tricks. Solutio 阅读全文
posted @ 2013-05-07 14:48 蓝晓 阅读(491) 评论(0) 推荐(0) 编辑