title: How to convert datatable into generic type
body: <p>How to convert DataTable having N rows into <code>KeyValuePair&lt;long,string&gt;[]</code> type having same N no of rows</p>
  
  <p>I want to return <code>KeyValuePair&lt;long,string&gt;[]</code> kind of value from a function that will convert DataTable into above type.</p>