Advertisement
quczmil

Untitled

Feb 14th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. ################
  2. RestrictionOperators
  3. ################
  4. Linq3:
  5. var expensiveInStockProducts = from product in products where product.UnitPrice > (decimal)3.0 select product;
  6.  
  7. Linq4:
  8. var waCustomers = from customer in customers where customer.Region == "WA" select customer;
  9.  
  10. ###############
  11. OrderingOperators
  12. ###############
  13. Linq30:
  14. var sortedProducts = from product in products orderby product.ProductName select product;
  15.  
  16. Linq32:
  17. var sortedDoubles = from double_ in doubles orderby double_ select double_;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement