Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.