The Mysterious DatasetDataReader

In the comments for a post on Dataset/DataReader stuff over on Roy Osherove’s blog, Steve Maine writes about some mystery guy who created a DatasetDataReader class for unit testing, and that it was really useful and cool. Well, that guy was me. So in response to the request for it, here is the code.

It’s a pretty hacky implementation of a IDataReader, and some things simply throw a NotImplementedException because I didn’t need them at the time. If you happen to make some improvements to it, I’d appreciate it if you flung the bits back my way.