在 C# 语言规范版本 4 中,1.6.7.5 运算符是有关List<T>运算符的信息:==和!=. 但我找不到在 ? 中定义的此类运算符List<T>?我错过了什么吗?
来自 1.6.7.5 运算符的示例代码:
List<int> a = new List<int>();
a.Add(1);
a.Add(2);
List<int> b = new List<int>();
b.Add(1);
b.Add(2);
Console.WriteLine(a == b); // Outputs "True" => here I get False as well
b.Add(3);
Console.WriteLine(a == b); // Outputs "False"