2009年2月22日
摘要: 大家都知道用lock关键字指定的锁定对象必须是引用类型,如果我们这样写: class Program { static void Main(string[] args) { B b = new B(); lock (b) //error { } ... 阅读全文
posted @ 2009-02-22 20:38 周雪峰 阅读(1671) 评论(3) 推荐(0) 编辑