Skip to content

Instantly share code, notes, and snippets.

@peyangu
Created April 15, 2017 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peyangu/3c9ba77766d787f1e153db4445b78efa to your computer and use it in GitHub Desktop.
Save peyangu/3c9ba77766d787f1e153db4445b78efa to your computer and use it in GitHub Desktop.
SequenceEqualメソッド(False)
List<string> personListB = new List<string>();
personListB.AddRange(personList.Select(p => p.Name));
personListB.RemoveAt(2);
var personSequence = personList.Select(p => p.Name).SequenceEqual(personListB);
Console.WriteLine(personSequence);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment