how to get 2 list equal value c# code example
Example 1: list with two values c#
List<Tuple<T1, T2>> list;
Example 2: check two lists are equal c#
List<int> list1 = new List<int> { 1, 2, 3 };
List<int> list2 = new List<int> { 1, 2, 3 };
if (list1.SequenceEqual(list2))
{
Console.WriteLine("true");
}
else
{
Console.WriteLine("false");
}