I have a C# project in SharpDevelop. I define the data variables in a class called, thusly:
using System;
namespace CSVHelperReadSample
{
class DataRecord1
{
public string TimeWhen { get; set;}
public float IconAltitude { get; set; }
public float Latitude { get; set; }
}
}
Can I dynamically change the declarations in DataRecord1 by reading in a csv file? The csv file would have four columns and n rows, where column 1 = public, column 2 = type (string, float), column 3 = dataFieldName, and column 4 = { get; set;}.