Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试一个具有不同记录return的数组。但是这段代码不起作用。我究竟做错了什么?
return
return table.AsEnumerable().Distinct(DataRowComparer.Default).ToArray();
table .AsEnumerable() .GroupBy(row => row.Field<DataType>("FieldName")) .Select(group => group.First()) .ToArray()