Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private static void MinMaxDemo(List<Order> orders)
var minimumQuantity = orders.Min(order => order.Quantity);
var maximumQuantity = orders.Max(order => order.Quantity);
WriteLine($"Minimum Quantity: {minimumQuantity}");
WriteLine($"Maximum Quantity: {maximumQuantity}");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment