我是菜鸡,记录一下。
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
List<string> a = new List<string>();
a.Add("123");
a.Add("234");
List<string> b = new List<string>();
b.Add("123");
b.Add("234");
bool f = a.SequenceEqual(b);
Console.WriteLine(f);
//如果直接输出a==b的话,是false
}
}
}
菜鸡需要努力!