
C#
pengfoo
这个作者很懒,什么都没留下…
展开
-
C#委托回调的一个例子
参考: http://www.cnblogs.com/jimmyzhang/archive/2007/09/23/903360.html 直接上代码: using System; using System.Collections.Generic; using System.Text; namespace Delegate { //加热器 public class Heat原创 2013-12-27 10:17:30 · 920 阅读 · 0 评论 -
依赖注入的很好的一个博客例子
http://www.cnblogs.com/leoo2sk/archive/2009/06/17/1504693.html转载 2014-01-14 15:34:05 · 1326 阅读 · 0 评论 -
c# lamada表达式
相关在博客中介绍的很详细了。特转载学习学习。 http://www.cnblogs.com/OceanEyes/archive/2012/08/27/2658920.html using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Re转载 2014-03-05 15:37:56 · 1409 阅读 · 0 评论 -
C#判断字符串是否合法
bool IsEmptyOrError(string str) { Regex regex1 = new Regex(@"[a-zA-z]+://[^s]*"); // 匹配网址 Regex regex2 = new Regex(@"[/\\^%&',;=?$\x22]+"); // 匹配特殊字符转载 2014-03-05 10:18:35 · 2642 阅读 · 0 评论