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