I have a datatable. I need to get and return the schema of the datatable below.
How can I get the schema?
using (var reader = ExcelReaderFactory.CreateReader(stream))
{
var result = reader.AsDataSet();
DataTable firstTable = result.Tables[0];
var schema = ???
}