Created
April 23, 2020 10:11
-
-
Save conanak99/9710365be99d85d631fbde793d13e63c to your computer and use it in GitHub Desktop.
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
List<Course> courses = new List<Course>(); | |
courses.Add(new Course | |
{ | |
ID = 1, | |
Subject = "LINQ Tutorials", | |
Rank = 5 | |
}); | |
courses.Add(new Course | |
{ | |
ID = 2, | |
Subject = ".NET Threading Tutorials", | |
Rank = 4 | |
}); | |
courses.Add(new Course | |
{ | |
ID = 3, | |
Subject = "Learn WPF", | |
Rank = 3 | |
}); | |
var result = courses.Where(c => c.Rank > 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment