Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the DataPoint class with the specified X-value and Y-values.
 /// </summary>
 /// <param name="xValue">The X-value of the data point.</param>
 /// <param name="yValues">A comma-separated string of Y-values of the data point.
 /// </param>
 public DataPoint(float xValue, string yValues)
 {
     XValue = xValue;
     string[] ys = yValues.Split(',');
     ys.CopyTo(YValues.ToArray(), 0);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns a new instance that is an exact copy of the data point.
 /// </summary>
 public DataPoint Clone()
 {
     return(new DataPoint(XValue, YValues.ToArray()));
 }