Skip to content

Instantly share code, notes, and snippets.

@peyangu
Created April 11, 2017 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peyangu/2e5894dedacac280c45cf4a10f724e0a to your computer and use it in GitHub Desktop.
Save peyangu/2e5894dedacac280c45cf4a10f724e0a to your computer and use it in GitHub Desktop.
LINQ説明用Program.cs
static void Main(string[] args)
{
List<Person> personList = new List<Person>();
personList.Add(new Person() { Name = "ほげほげ太郎", Age = 20 });
personList.Add(new Person() { Name = "ほげほげ太郎", Age = 21 });
personList.Add(new Person() { Name = "はげはげ太郎", Age = 45 });
personList.Add(new Person() { Name = "しーしゃーぷ", Age = 32 });
personList.Add(new Person() { Name = "しーしぇぱーど", Age = 26 });
personList.Add(new Person() { Name = "とぅーびー", Age = 15 });
personList.Add(new Person() { Name = "えーとぅー", Age = 69 });
personList.Add(new Person() { Name = "ないんず", Age = 1000 });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment