Skip to content

Instantly share code, notes, and snippets.

@jskeet
Created January 12, 2023 09:32
Show Gist options
  • Save jskeet/766bda056c4d676177ac5f5ae396f8b6 to your computer and use it in GitHub Desktop.
Save jskeet/766bda056c4d676177ac5f5ae396f8b6 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
List<string> list1 = new List<string> {"1", "2", "3"};
List<string> list2 = new List<string> {"1", "2", "3"};
// Prints True
Console.WriteLine(list1.SequenceEqual(list2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment