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