的步骤如下:
List<Tuple<object, object, object>> tupleList = new List<Tuple<object, object, object>>();
foreach (DataRow row in dataTable.Rows)
{
object column1Value = row["Column1"]; // 假设DataTable中有名为Column1的列
object column2Value = row["Column2"]; // 假设DataTable中有名为Column2的列
object column3Value = row["Column3"]; // 假设DataTable中有名为Column3的列
Tuple<object, object, object> tuple = new Tuple<object, object, object>(column1Value, column2Value, column3Value);
tupleList.Add(tuple);
}
推荐的腾讯云相关产品和产品介绍链接地址:
领取专属 10元无门槛券
手把手带您无忧上云