Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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