更新时间:2023-12-03 18:54:58
替换
Replace
row.Address
与
with
row.Address.Trim()
(假设row.Address为字符串).
(this is assuming row.Address is a string).
简单:
Easy:
var distinctvalues = (from row in Employees
select new
{
row.Address.Trim()
}).Distinct().ToList();
我假设row.Address是一个字符串.
I am assuming that row.Address is a string.