var distinctValues = dtOnStorage.AsEnumerable()
.Select(row => new { product = row.Field<string>("WHITE_PART_EQP") }).Distinct();string product = "";
foreach (var item in distinctValues) { product = item.product + ","; }本文共 293 字,大约阅读时间需要 1 分钟。
var distinctValues = dtOnStorage.AsEnumerable()
.Select(row => new { product = row.Field<string>("WHITE_PART_EQP") }).Distinct();string product = "";
foreach (var item in distinctValues) { product = item.product + ","; }转载于:https://www.cnblogs.com/CSharpStudy/archive/2012/04/21/2461098.html