Created
April 28, 2018 21:22
-
-
Save dance2die/d45973925cdf7753abef3d209c7b6ef9 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 SequenceEqualDemo(List<Order> shippedOrders, List<Order> domesticOrders) | |
{ | |
var sameOrderAreSame = shippedOrders.SequenceEqual(shippedOrders); | |
WriteLine($"Same Orders share the same sequence {sameOrderAreSame}"); | |
var areAllDomesticOrdersShipped = shippedOrders.SequenceEqual(domesticOrders); | |
WriteLine($"Are All Domestic Order Shipped? {areAllDomesticOrdersShipped}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment