c# - Specifying A DateTime, Double PointPairList? -
i want graph data date vs value.
problem don't know how make pointpairlist accept datetime values , double values.
what version of framework using. if it's .net 4 can use tuple:
var datapoints = new list<tuple<datetime, double>>();
if using earlier framework version, can instead create simple class hold data points:
public class datapoint { public datetime datetime { get; set; } public double value { get; set; } }
...and use instead:
var datapoints = new list<datapoint>();
Comments
Post a Comment