C#C
C#3y ago
7 replies
GameShark

✅ best LINQ method to sort after subtracting two properties?

I have a list of objects with two fields, num1 and num2. I would like to subtract num1 by num2 and then sort descending by the resulting value. Can anyone recommend a LINQ method for this?
Was this page helpful?