Skip to Content
Head First C#, 3rd Edition
book

Head First C#, 3rd Edition

by Jennifer Greene, Andrew Stellman
September 2013
Beginner content levelBeginner
1098 pages
31h 24m
English
O'Reilly Media, Inc.
Content preview from Head First C#, 3rd Edition

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 ...

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

Head First C#, 4th Edition

Head First C#, 4th Edition

Andrew Stellman, Jennifer Greene
Head First C#, 2nd Edition

Head First C#, 2nd Edition

Andrew Stellman, Jennifer Greene
Head First C#, 5th Edition

Head First C#, 5th Edition

Andrew Stellman, Jennifer Greene
Head First C

Head First C

David Griffiths, Dawn Griffiths

Publisher Resources

ISBN: 9781449358846Errata PageSupplemental Content