How do you use LINQ (C#) to select the value in a particular column for a particular row in a datatable. The equivalent SQL would be:<
LINQ (C#)
datatable
SQL
var name = from DataRow dr in tblClassCode.Rows where (long)dr["ID"] == Convert.ToInt32(i) select (int)dr["Name"]).FirstOrDefault().ToString()