02 2010 档案
排序类.不管什么类型都能排
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.ComponentM...
阅读全文
如何将字符串转换为字符串数组?
摘要:如何将字符串转换为字符串数组?如string str = "abc";转换为string[] strs = {"a", "b", "c"};答案:string str = "abc"; string[] strs = Regex.Split(str, "(?<=.)(?=.)");
阅读全文
转载农民伯伯的文章
摘要:4.2 C#点滴小技巧和小知识 在c#中,string对象的==运算已经被强行重写,它就是表示 equals, 这就是说,在c#中,实现字符串值比较的话,只需要写成"hello"==aaa就行了, 这样设计的目的是为了更直观。 ---------------------------------------------------------------- 如果在方法前面同时使用protected...
阅读全文
从数据库中取数据得到Model. 从网页控件上取值得到Model
摘要:/Files/z2002m/DynamicMappingSpike.zip上面的这个是 从数据库中取数据得到Model. 不过有条件的, 数据库中的字段名称必须与属性名称一致. 从网页控件上取值得到Model , 跟上面的反射代码差不多,只需要取GetFileldInfo()即可. 再赋值... 代码Code highlighting produced by Actipro CodeHighlig...
阅读全文
一个控件注册了多少个事件.
摘要:button2.Click -= new EventHandler(button2_Click); button2.Click += new EventHandler(button2_Click); Delegate[] delDirectory = button2.Click.GetInvocationList(); 判断事件是否已注册
阅读全文
浙公网安备 33010602011771号