I have been searching for a way to allow one element of my FileHelpers mappling class to be an array of specific length.
For instance, I have a class like this:
[DelimitedRecord(",")]
public class Example
{
public string code;
public int month;
public int day;
public double h1;
public double h2;
public double h3;
public double h4;
}
The values h1-h4 would really make more sense as an array simply called 'h'. It would make processing the file a little easier as well. I also know that the file I am reading will always have these, and only these, fields in it.
Has anyone figured out a way to include arrays in your FileHelper mapping classes?