📅  最后修改于: 2022-03-11 14:49:18.786000             🧑  作者: Mango
// You need to implement the following interface to your object
public class Car: IEquatable
{
......
public bool Equals( Car other )
{
return this.CarID == other.CarID && this.CarName == other.CarName;
}
}