title: Linq result to double(Multidimensional-arrays) array?
body: <p>I want to assign linq result to double array. I have two object array. I fetch them like below:</p>
  
  <pre><code>var chartSeries = MeterReadings.GroupBy(x =&gt; x.Name)
                    .Select(g =&gt; new
                    {
                       Name = g.Key,
                       Data = g.Select(x =&gt; x.Value).ToArray(),
                       Date = g.Select(x =&gt; x.ReadDate).ToArray()
                    }).ToArray();
  </code></pre>
  
  <p>And trying to assign code:</p>
  
  <pre><code>foreach (var item in chartSeries)
  {
      int length = item.Data.Length;
      object[,] data =  ???  //first array item.Data and second item.Dates
      Series localSeries = new Series 
                           {
                                Name = item.Name, Data = new Data(data), Type = ChartType 
                           };
       Series.Add(localSeries);
   }
  </code></pre>
  
  <p>this line <code>object[,] data =  ???</code>  What should I write? I want something like <code>object[,] data =  { item.Data, item.Dates }</code></p>
  
  <p>I'm trying to get like this:</p>
  
  <pre><code>Data = new Data(new object[,]
         {
            { new DateTime(1970, 9, 27), 0 },
            { new DateTime(1970, 10, 10), 0.6 },
            { new DateTime(1970, 10, 18), 0.7 },
            { new DateTime(1970, 11, 2), 0.8 },
            { new DateTime(1970, 11, 9), 0.6 },
            { new DateTime(1970, 11, 16), 0.6 },
            { new DateTime(1970, 11, 28), 0.67 },
            { new DateTime(1971, 1, 1), 0.81 },
            { new DateTime(1971, 1, 8), 0.78 },
            { new DateTime(1971, 1, 12), 0.98 },
            { new DateTime(1971, 1, 27), 1.84 },
            { new DateTime(1971, 2, 10), 1.80 },
            { new DateTime(1971, 2, 18), 1.80 },                                                            
            { new DateTime(1971, 6, 12), 0 }
         })
  </code></pre>
  
  <p>Thanks...</p>