Created
April 11, 2017 12:37
-
-
Save peyangu/9452a9405f97d28dc23ef951dad68d5d to your computer and use it in GitHub Desktop.
OrderByDescendingメソッド
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var personOrderByDesc = personList.OrderByDescending(p => p.Age); | |
foreach (Person p in personOrderByDesc) | |
{ | |
Console.WriteLine(p.Name + " : " + p.Age); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment