It was an intentional feature so probably not unless it no longer
makes sense to me. It made sense to me at the time anyways. There is a
way to tell whether the column actually exists however if you just
slightly change your syntax and use this example method.
ir.BSB_No = GetValue(csvData, "BDB No");
...
private static string GetValue(CsvReader reader, string field)
{
int index = reader.GetIndex(field);
if (index == -1)
{
throw new Exception("Field named " + field + " does not exist in
reader.");
}
else
{
return reader[field];
}
}
Bruce Dunwiddie