2-Column DataTable to List<int> .NET 2.0
问题 I have populated a DataTable from a stored procedure in an older web application written in C# under .NET 2.0 / Visual Studio 2005. I'm trying to populate a List with the values in the DataTable, but I keep running up against a couple issues. My conversion process looks like this: List<int> SpecialVendorList = new List<int>(); foreach (DataRow datarow in GetAllSpecialVendors().Rows) { //Loop through each row foreach (DataColumn column in GetAllSpecialVendors().Columns) { SpecialVendorList.Add