linq int集合转string集合,或者其他类型集合互转
嗯,备注一下
// int list to string list
//var query = List<int>();
var result = query.Select(c => (string)c).ToList();
// string list to int list
//var query = List<string>();
var result = query.Select(c => (int)c).ToList();
定,精,简,俭