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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -