將DataTable中的某列轉換成數組或者List ...
string[] arrRate = dtRate.AsEnumerable().Select(d => d.Field<string>("arry")).ToArray();
List<string> litRate = dtRate.AsEnumerable().Select(d => d.Field<string>("arry")).ToList();
將DataTable中的某列轉換成數組或者List ...
string[] arrRate = dtRate.AsEnumerable().Select(d => d.Field<string>("arry")).ToArray();
List<string> litRate = dtRate.AsEnumerable().Select(d => d.Field<string>("arry")).ToList();