0

I want to filter a source sorted list with LINQ and put it in a destination list. Is the order of the source list always preserved after filtering it? Could the order of items in list1 and list2 be different when list2 = list1.Where(...).ToList() and both are of type List?

var desTransactions = srcTransactions.Where(s => s.Amount >= 100).ToList();
ArMaN
  • 2,306
  • 4
  • 33
  • 55

0 Answers0