(You are currently looking at the first edition version of this page. This page is also available for the second
and third editions.)
Errata for Chapter 6: Implementing iterators the easy way
P168, sequence diagram: Reformatting to distinguish columns more clearly
The textual sequence diagram on page 168 indicating how iterator blocks execute would be clearer if the second column were moved further to the right.
P180, first listing: Mismatch of variable names
The code at the top of page 180 declares the variable holdings
but then uses it as stocks
in the call to ProcessStocks
. To be consistent with the code below, it's easiest just to change the variable to be declared as stocks
:
Holdings stocks = DbService.EndGetStockHoldings(holdingsAsync);