01 2015 档案
摘要:Posted by Shiv Kumar on 23rd February, 2011 The Asynchronous Programming Model (or APM) has been around since .NET 1.1 and is still (as of .NET 4.0) the best/recommended solution for asynchronous I/...
阅读全文
摘要:http://blog.csdn.net/wojilu/article/details/6976230 很多人已经在使用git(或正在转移到git上),在github.com上,也看到不少国内同学的开源项目,非常不错。但相关教程似乎不多,所以趁着我自己的开源项目源码托管(https://github.com/wojilu/wojilu),写了一篇,算是抛砖引玉吧。 这篇教程的预期,是希望没有任何版...
阅读全文
摘要:Data validation is a key part in WPF.Validation is used to alert the user that the data he entered is illegal.In this post we will see how to Validate user input using MVVM binding.I have created 2 di...
阅读全文
摘要:Special extension methods were released in C# 3.0. Developers have continuously been looking for ways to extend classes to every coding and got top most preferable extension methods for .net developme...
阅读全文
摘要:So what’s New in WPF Version 4.5 Developer Preview ? Here is a list of the new features and their regarding post : Synchronously and Asynchronously validating data Improved Support for Establishing a...
阅读全文
摘要:Stephen Toub Download the Code Sample Asynchronous programming has long been the realm of only the most skilled and masochistic of developers—those with the time, inclination and mental capacity to re...
阅读全文
摘要:Alex D James 7 May 2009 3:44 PM One of the most common questions we get is how long should an ObjectContext should live. Options often cited include one per: Function Form Thread Application Plent...
阅读全文
摘要: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 ...
阅读全文
摘要: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 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 ...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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 ...
阅读全文
摘要: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 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...
阅读全文