I want to know how to transform a DataTable into a Dictionary. I did something like this.
using System.Linq; internal Dictionary GetDict(Da
All the previos answers didn't help me, so I did this:
myList = dt.AsEnumerable() .ToDictionary(row => row[0].ToString(), row => row[1].ToString());
and it worked great!