khalidabuhakmeh / ConsoleTables

Print out a nicely formatted table in a console application C#
MIT License
944 stars 158 forks source link

Handle empty enumerable sets gracefully #5

Closed Lumirris closed 9 years ago

Lumirris commented 9 years ago

The code was throwing exceptions when attempting to create a table from an empty set. This remedies that, as well as makes some minor variable naming changes for clarity, and changes the Columns property to an IList, which seems to be adequate given that Rows is also an IList.