
正则表达式
linbiao523
IT民工
展开
-
正则表达式
转自:http://blog.youkuaiyun.com/zhoufoxcn/article/details/5343254 在 .NET 中提供了对正则表达式的支持,并且提供了相关的类,分别有: Regex 、 Match 、 Group 、 Capture 、 RegexOptions 、 MatchCollection 、 GroupCollection 、 CaptureCollect转载 2012-03-26 10:52:36 · 513 阅读 · 0 评论 -
线程的同步
在C#中实现线程的同步有几种方法:lock、Mutex、Monitor、Semaphore、Interlocked和ReaderWriterLock等。 1.lock同步 2.Monitor类 针对上面的代码,如果使用Monitor类来同步的话,互斥同步,使用如下 实际上是相当于: try{ Monitor.Enter(objLock); //同步代码 } finally {转载 2012-03-27 14:54:47 · 370 阅读 · 0 评论