Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private static void FirsDemo(List<Order> orders)
{
var firstOrderAfterMarch = orders.First(order => order.OrderDate >= march);
PrintHeaderFooter("First order after March", () => PrintOrder(firstOrderAfterMarch, indentBy), indentBy);
var firstOrderAfterSeptember = orders.FirstOrDefault(order => order.OrderDate >= september);
PrintHeaderFooter("First or Default order after September", () => PrintOrder(firstOrderAfterSeptember, indentBy), indentBy);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.