摘要: Throughout the development of Parallel Extensions for the .NET Framework 4, we’ve come across a myriad of situations where certain functionality would be useful in developing a particular application ... 阅读全文
posted @ 2015-01-13 17:56 东风125 阅读(470) 评论(0) 推荐(0) 编辑
摘要: The C# Memory Model in Theory and Practice Best Practices All code you write should rely only on the guarantees made by the ECMA C# specification, and not on any of the implementation details expla... 阅读全文
posted @ 2015-01-13 17:46 东风125 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Posted on Friday, October 11, 2013 .Net has three low-level mechanisms to run code in parallel: Thread, ThreadPool, and Task. These three mechanism serve different purposes. Thread Thread represents ... 阅读全文
posted @ 2015-01-13 17:42 东风125 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Actually the title of this article should be entitled “How to use WeakEventManager with ICommand implementations”, but the memory leak title is more exciting (and true) Overview Some WPF controls, suc... 阅读全文
posted @ 2015-01-13 17:26 东风125 阅读(317) 评论(0) 推荐(0) 编辑
摘要: In a previous post Should I expose asynchronous wrappers for synchronous methods?, I discussed “async over sync,” the notion of using synchronous functionality asynchronously and the benefits that doi... 阅读全文
posted @ 2015-01-13 14:15 东风125 阅读(236) 评论(0) 推荐(0) 编辑
摘要: This post was written by Stephen Toub, a frequent contributor to the Parallel Programming in .NET blog. He shows us how Visual Studio 2012 and an attention to detail can help you discover unnecessary... 阅读全文
posted @ 2015-01-13 13:49 东风125 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Lately I’ve received several questions along the lines of the following, which I typically summarize as “async over sync”: In my library, I have a method “public T Foo();”. I’m considering exposing ... 阅读全文
posted @ 2015-01-13 13:43 东风125 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Stephen Cleary Download the Code Sample This is the second article in a series on combining async and await with the established Model-View-ViewModel (MVVM) pattern. Last time, I showed how to data bi... 阅读全文
posted @ 2015-01-13 09:39 东风125 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Posted on January 25, 2012 by Matthieu MEZIL 01/26/2012: Code update Imagine the following scenario: you have a WCF service with two methods:List GetCustomers(); List GetOrders(int CustomerId); You w... 阅读全文
posted @ 2015-01-13 09:27 东风125 阅读(645) 评论(0) 推荐(0) 编辑