Skip to Content
Expert C# 5.0: with the .NET 4.5 Framework
book

Expert C# 5.0: with the .NET 4.5 Framework

by Mohammad Rahman
December 2012
Intermediate to advanced content levelIntermediate to advanced
612 pages
14h 4m
English
Apress
Content preview from Expert C# 5.0: with the .NET 4.5 Framework

CHAPTER 14

images

Asynchrony

A powerful new feature has been added for asynchronous programming in C# language 5.0. This new feature comes in the form of two new keywords—async and await—which are used to make the synchronous method asynchronous. When you use these two keyword in your method, the C# compiler performs a transformation of your method code to generate the appropriate code, such as stub method and state machine, to do the asynchronous operation behind the scenes. This new feature makes asynchronous programming much easier than the exiting asynchronous pattern used in .NET.

This chapter will define the basics of synchronous and asynchronous ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro C# 5.0 and the .NET 4.5 Framework, Sixth Edition

Pro C# 5.0 and the .NET 4.5 Framework, Sixth Edition

Andrew Troelsen
C# 4.0 Unleashed

C# 4.0 Unleashed

Bart De Smet

Publisher Resources

ISBN: 9781430248606Purchase book