Hi! I'm struggeling to figure out how to replace the two foreach below.
public void UpdateChangedRows(List<Row> changedRows)
{
// How to write linq to update the rows (example code using foreach)
foreach (Row row in table.Rows)
{
foreach (Row changedRow in changedRows)
{
if (row.RowId==changedRow.RowId)
{
row.Values = changedRow.Values;
}
}
}
}
I think there would be a linq way to perform the same operation. Thanks for any help.
Larsi