Created
April 11, 2017 12:30
-
-
Save peyangu/c82b568e10efd1a80f788177b09c2ad5 to your computer and use it in GitHub Desktop.
OrderByメソッド
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 personOrderBy = personList.OrderBy(p => p.Age); | |
foreach (Person p in personOrderBy) | |
{ | |
Console.WriteLine(p.Name + " : " + p.Age); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment