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
I'm trying to read in a class such as the following where one/or more of the property names are available at runtime.
publicclassBreakdownCSV{[CsvColumn(FieldIndex=1)]publicstringBreakdownProperty{get;set;}[CsvColumn(Name="Day of Week Name")]publicDayOfWeekDayOfWeekName{get;set;}[CsvColumn(Name="SessionName")]publicstringSessionName{get;set;}}
but the BreakdownProperty value is coming up as null. As far as I understand, this is because the reader isn't able to read properties without the matching the property's name or it being specified in the attribute.
How would I go about doing this?
The text was updated successfully, but these errors were encountered:
I'm trying to read in a class such as the following where one/or more of the property names are available at runtime.
but the
BreakdownProperty
value is coming up as null. As far as I understand, this is because the reader isn't able to read properties without the matching the property's name or it being specified in the attribute.How would I go about doing this?
The text was updated successfully, but these errors were encountered: