MikeStall / DataTable

Class library for working with tabular data, especially CSV files
Apache License 2.0
150 stars 63 forks source link

Overload KeepColumns, option for throwOnMissing #27

Closed yellis closed 10 years ago

yellis commented 10 years ago

Overload the MutableDataTable.KeepColumns() method to allow the user to specify whether or not the function should throw an exception when a column in the list is missing.

The logic of the function is refactored to avoid setting the Column array until all columns are set, since it is not known ahead of time how many will match.

Supporting unit tests are also added.

yellis commented 10 years ago

Thanks. Could you perhaps release a new nuget?