Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Specify the data source.
- int[] scores = new int[] { 97, 92, 81, 60 };
- // Define the query expression.
- IEnumerable<int> scoreQuery =
- from score in scores
- where score > 80
- select score;
- // Execute the query.
- foreach (int i in scoreQuery) {
- Console.Write(i + " ");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement