C# in Depth

Cover of C# in Depth
Order now (3rd edition)

(You are currently looking at the third edition version of this page. This page is also available for the first and second editions.)

Errata for Chapter 15: Asynchrony with async/await

P473, section 15.3.2: Typo around Task<TResult>

The published text has (just after the list at the start of the section):

The difference between the two is essentially that Task<TResult> represents an operation that returns a value of type T [...]

The T should be TResult:

The difference between the two is essentially that Task<TResult> represents an operation that returns a value of type TResult [...]

P500, section 15.5.5: Indentation failure

The first line of the code starting at the bottom of page 500 should be indented. (It's not a label, as the other unindented lines are.)

P503, section 15.5.6: Last line of listing should be bold

The last line of the listing on page 502/503 has a comment of // Bold at the end. That was an instruction to make the line bold, rather than a normal C# comment, but unfortunately it wasn't picked up during layout.

P503, section 15.5.6: Non-bold line

As indicated by the // Bold comment, the last line of the code at the top of page 503 should be in bold.

P505, section 15.6.1: Note to production still present

In section 15.6.1, there's a note I left to the Manning production department:

// NOTE TO PRODUCTION: Please consult with Jon on formatting. Do not abbreviate!

Obviously this shouldn't have appeared in the final copy. Sorry about that!

P505, section 15.6.1 : Naming convention failure

The method declarations near the center of the page should all have a suffix of Async to follow the TAP conventions I was aiming to demonstrate.

P511, section 15.6.2: Missing space

On page 511, just after listing 15.13, there's a sentence missing a space:

There are two slight issues with listing15.13:

This should of course be:

There are two slight issues with listing 15.13: