[C#]DataTable转string[]
来源:https://zhidao.baidu.com/question/1754089856824824548.html
string[] ary = Array.ConvertAll<DataRow, string>(dt.Rows.Cast<DataRow>().ToArray(), r => r["User"].ToString());
个性签名:做要做好,做到不三不四不如不做。
来源:https://zhidao.baidu.com/question/1754089856824824548.html
string[] ary = Array.ConvertAll<DataRow, string>(dt.Rows.Cast<DataRow>().ToArray(), r => r["User"].ToString());