Skip to content

Instantly share code, notes, and snippets.

@peyangu

peyangu/Program.cs

Created Apr 15, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.