Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private static void SelectManyDemo(List<Order> orders)
{
var firstOrder = orders.Take(1);
var lastOrder = orders.TakeLast(1);
var firstAndLastOrders = new [] {firstOrder, lastOrder}.SelectMany(order => order);
PrintOrders(firstAndLastOrders);
}
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.