摘要: 说的是Framework如何体贴程序员,而非C#。这是Framework对Concurrency相关下的细微功夫: using System.Runtime.CompilerServices; public class MyClass { [MethodImpl(MethodImplOptions.Synchronized)] //体贴不? public void DoSomething( ) { /* Method code */ } //Class members }这段代码通过[M... 阅读全文
posted @ 2011-11-01 08:01 James Leng 阅读(378) 评论(0) 推荐(1) 编辑