You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to deserialize to a list of dictionaries.
To Reproduce
var records = csv.GetRecords<Dictionary<string, object>>();
Results in this exception:
CsvHelper.Configuration.ConfigurationException: 'Types that inherit IEnumerable cannot be auto mapped. Did you accidentally call GetRecord or WriteRecord which acts on a single record instead of calling GetRecords or WriteRecords which acts on a list of records?'
Expected behavior
I'd expect this to work and produce the same types of objects as:
var records = csv.GetRecords<dynamic>().Cast<ExpandoObject>();
Additional context
ExpandoObject/dynamic isn't NAOT-compatible. (Neither is CsvHelper, for now, but that's a separate issue)
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm trying to deserialize to a list of dictionaries.
To Reproduce
var records = csv.GetRecords<Dictionary<string, object>>();
Results in this exception:
CsvHelper.Configuration.ConfigurationException: 'Types that inherit IEnumerable cannot be auto mapped. Did you accidentally call GetRecord or WriteRecord which acts on a single record instead of calling GetRecords or WriteRecords which acts on a list of records?'
Expected behavior
I'd expect this to work and produce the same types of objects as:
var records = csv.GetRecords<dynamic>().Cast<ExpandoObject>();
Additional context
ExpandoObject/dynamic isn't NAOT-compatible. (Neither is CsvHelper, for now, but that's a separate issue)
The text was updated successfully, but these errors were encountered: