Created
February 24, 2018 22:39
-
-
Save dance2die/8da7e590187ff210510519b1f1f937d2 to your computer and use it in GitHub Desktop.
LINQ - Select
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
private static void SelectDemo(List<Order> orders) | |
{ | |
var quantities = orders.Select(order => order.Quantity); | |
quantities.ToList().ForEach(quantity => System.Console.WriteLine($"Quantity: {quantity}")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment