Compare Two List of Strings in C#?
Imagine you have two List
List<string> strList1 = new List<string>
{
"Jack", "And", "Jill", "Went", "Up", "The", "Hill"
};
List<string> strList2 = new List<string>
{
"Jack", "And", "Jill", "Went", "Down", "The", "Hill"
};
bool result = strList1.SequenceEqual(strList2);