Exemplo n.º 1
0
 protected TableSchema DefineTimeSeries(string name, params string[] valueCols)
 {
     return(new TableSchema(name,
                            new DataColumn[]
     {
         TableSchema.CreateReference("stock"),
         new DataColumn("year", typeof(int))
     }.Concat(
                                valueCols.Select(col => new DataColumn(col, typeof(double)))
                                ))
            .Create());
 }