The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by bhaelen]

I think that the listing "DisplayDataReaderResults" on page 102 is incorrect.
The "Console.WriteLine" statements should all use the "{0}" formatter, since
each of them display just one result.
The listing incorrectly uses {0}, {1} and {2}.

Great book otherwise, I am really enjoying it so far.

Bennie Haelen
import-bot (20211) [Avatar] Offline
#2
Re: Listing Page 102
[Originally posted by arlen]

Good catch - I will add it to the errata list.

Thanks for reading!

Arlen

> I think that the listing "DisplayDataReaderResults" on page 102 is incorrect.
> The "Console.WriteLine" statements should all use the "{0}" formatter, since
> each of them display just one result.
> The listing incorrectly uses {0}, {1} and {2}.
>
> Great book otherwise, I am really enjoying it so far.
>
> Bennie Haelen