📅  最后修改于: 2022-03-11 14:48:48.539000             🧑  作者: Mango
List list1 = new List { 1, 2, 3 };
List list2 = new List { 1, 2, 3 };
if (list1.SequenceEqual(list2))
{
Console.WriteLine("true");
}
else
{
Console.WriteLine("false");
}