Skip to content

Instantly share code, notes, and snippets.

@peyangu
Created April 15, 2017 14:46
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/d5057ca7a5bb8c57acad3c87ea6de539 to your computer and use it in GitHub Desktop.
Save peyangu/d5057ca7a5bb8c57acad3c87ea6de539 to your computer and use it in GitHub Desktop.
SequenceEqualメソッド(True)
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