Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 2. Query creation.
- var numQuery =
- from num in numbers
- where (num % 2) == 0
- select num;
- // 3. Query execution.
- foreach (int num in numQuery)
- {
- Console.Write("{0,1} ", num);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement