Microsoft released the final version of Microsoft. BCL. async. For more information, see the blog Microsoft. BCL. async is now stable. This package allows developers to use the asynchronous features of C #5 and VB in. Net 4, Silverlight 4, and Windows Phone 7.5. The package consists of three libraries: Microsoft. BCl, Microsoft. BCL. async, and Microsoft. BCL. build. Because the unified assembly method is used, all the projects in the solution must reference these three libraries.
C # Since its development, it has been from the first version 1.0 to version 5.0. let's review what each version has brought:
- Version 1.0-basic C # syntax.
- Version 2.0-generic support. CLR is upgraded to fundamentally support runtime generics.
- Version 3.0-LINQ, added
from
/join
Added extended functions and dynamic Var keywords during compilation.
- Version 4.0-Keyword dynamic, CLR upgrade, add DLR, and start dynamic friendly support. Dynamic Parameters, parameter default values, generic covariant, and other features are added.
- Version 5.0-async/await keywords make Asynchronization easier.
Async/await unifies asynchronous programming models into synchronous models, simplifying development complexity and improving production efficiency. Microsoft officially released the final version of Microsoft. BCL. async, which allows async/await to be used in. net4 without changing the project to. Net 4.5.
For more information about the practice and principles, see [C #5.0 vnext-New Asynchronous Pattern]. However, the switchto method in this article has been removed, and the reason is dangerous. For more information, see stackoverflow. Why was "switchto" removed from async CTP/release?
Related Articles:
Best practices for C # async/await
Application of async and await on the Web
Asynchronous programming [series] that we are pursuing together in those years
Http://www.codeproject.com/Articles/518856/Task-Parallel-Library-and-async-await-Functionalit
Http://weblogs.asp.net/dixin/archive/2012/11/02/understanding-c-async-await-1-compilation.aspx
Http://weblogs.asp.net/dixin/archive/2012/11/08/understanding-c-async-await-2-awaitable-awaiter-pattern.aspx
Http://blog.zhaojie.me/2012/04/exception-handling-in-csharp-async-await-1.html
Http://blog.zhaojie.me/2012/04/exception-handling-in-csharp-async-await-2.html