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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -