4
查找到下面的代码块,为什么我需要将DataRow再次转换为DataRow?
DataTable _table = new DataTable();
//1) Why I need to Convert DataRow again into DataRow by Casting ?
List<DataRow> _rows = _table.Rows.Cast<DataRow>().Select(a => a).ToList();
//2) Why this is not valid?
List<DataRow> _rows = _table.Rows.Select(a => a).ToList();
在第一种情况下,为什么我需要再次转换成的DataRow DataRow的?以及为什么第二种情况无效?