Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
LINQ - Select
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