CSV Alias functionality

Perhaps I’ve missed something but it appears .FromCSV<T> does not use the AliasAttribute to aid in mapping. We have a CSV we are getting from a vendor which has long field names with spaces and were looking for a simply method to map it to our DTO.
I could just replace all the first line field names prior to trying to convert via FromCSV but wondered if there is a more intelligent solution?

The [Alias] attribute is for data persistence libraries, i.e. OrmLite / PocoDynamo. For serialization use [DataMember(Name="...")].

1 Like