Created
March 11, 2018 02:15
-
-
Save dance2die/346e92a6beaf551c8120652d6351d3e7 to your computer and use it in GitHub Desktop.
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 ZipDemo(List<Order> orders) | |
{ | |
var orderNumbersInText = new[] { "One", "Two", "Three", "Four", "Five" }; | |
orders | |
.Zip(orderNumbersInText, (order, text) => $"Quantity of Order {text}: {order.Quantity}") | |
.ToList() | |
.ForEach(sentence => WriteLine(sentence)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment