public Graph(GraphDescription description, int initialSeriesCapacity = 8)
 {
     Description = description;
     if (initialSeriesCapacity <= 0)
     {
         throw new ArgumentException("Capacity must be positive.");
     }
     graphSeries = new List <Series>(initialSeriesCapacity);
 }
Exemple #2
0
 public Graph(GraphDescription description, int initialSeriesCapacity = 8)
 {
     Description = description;
     if (initialSeriesCapacity <= 0)
     {
         throw new ArgumentException("Capacity must be positive.");
     }
     QuickList <Series, Array <Series> > .Create(new PassthroughArrayPool <Series>(), initialSeriesCapacity, out graphSeries);
 }