O'Reilly logo

Head First C#, 3rd Edition by Andrew Stellman, Jennifer Greene

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Async, Await, and Data Contract Serialization: Pardon the interruption

image with no caption

Nobody likes to be kept waiting...especially not users.

Computers are good at doing lots of things at once, so there’s no reason your apps shouldn’t be able to as well. In this chapter, you’ll learn how to keep your apps responsive by building asynchronous methods. You’ll also learn how to use the built-in file pickers and message dialogs and asynchronous file input and output without freezing up your apps. Combine this with data contract serialization, and you’ve got the makings of a thoroughly modern app.

Brian runs into file trouble

Brian’s got his XAML, he’s got his data binding, and he’s all ready to start porting his Excuse Manager to a Windows Store app. Everything’s going great, until...

image with no caption
image with no caption

Windows Store apps have superior I/O tools.

When you build a Windows Store app, it needs to be responsive, intuitive, and consistent. That’s why the .NET Framework for Windows Store Apps includes classes and methods that let you display file dialogs and do file I/O asynchronously—which means they don’t lock up your app while dialogs are displayed or files are written. And by using data contracts for serialization, your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required