The FileHelpers class RecordOperations.CreateEmptyDataTable()
method is responsible for this and it is not virtual.
I think the reason might be that it is similar to using a normal DataReader
via DataTable.Load(IReader)
which would also create readonly rows.
However, it is easy to fix by going through the columns instead of the rows:
foreach (DataColumn col in dt.Columns)
col.ReadOnly = false;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…