var arr = dt.Rows.OfType() .Select(x => x["列序号或列名"]) .Select(x => Convert.ToInt32(x))//转换类型比如整型 .ToArray(); foreach (var a in arr)//