title: how to convert object[] into datatable
body: <p>I have an object array in following format</p>
  
  <pre><code>Obj - {object[3]}
  
  obj[0]
  obj[1]
  obj[2]
  
  obj[1] - count = 6
      [0] - key = "key0"
          value = "value0"
      [1] - key = "key1"
          value = "value1"
      [2] - key = "key2"
          value = "value2"
      [3] - key = "key3"
          value = "value3"
      [4] - key = "key4"
          value = "value4"
      [5] - key = "key5"
          value = "value5"
  
  and so on
  </code></pre>
  
  <p>I am trying to convert this object into datatable so that I will get datatable in following format</p>
  
  <pre><code>Key0    Key1    Key2    Key3    Key4    Key5
  -----------------------------------------------
  Value0  Value1  Value2  Value3  Value4  Value5
  </code></pre>
  
  <p>I tried to convert this object into dictionary and then into datatable.
  But not able to do this.</p>
  
  <p>EDIT</p>
  
  <p>I have created dictionery but from here not able to move forward.</p>
  
  <pre><code>DataTable table = new DataTable();
                      Dictionary&lt;string, string&gt;.KeyCollection pair1 = dictionary.Keys;
  
                      foreach (string key in pair1)
                      { 
  
                      }
  </code></pre>
  
  <p>Is there any other way to achieve this?</p>