547772 (1) [Avatar] Offline
#1
The question asks what method allows you to call select on a list? The answers given are "TypeOf", "Cast", and "Typed range variable". Maybe I'm mistaken, but shouldn't the answer be "OfType" instead of "TypeOf"? The typeof operator returns the type of the supplied object and no casting performed. Where as the OfType extension method will return only the elements in the list which can be cast to the specified type.
569151 (1) [Avatar] Offline
#2
Agreed, just noticed this issue myself.
jon.skeet (483) [Avatar] Offline
#3
Apologies - I've only just seen this message; somehow I must have become unsubscribed.

I didn't write the exercises for the liveBook edition of this book - I'll get in touch with Manning to find out more.