public Equals ( object obj ) : bool | ||
obj | object | The Object to compare with the current Object. |
Результат | bool |
public override bool Equals(object obj)
{
if (! (obj is IntegerList))
return false;
IntegerList otherList = (IntegerList)obj;
if (otherList.Count != this.Count)
return false;
for (int i=0; i < this.list.Count; i++)
{
if (this[i] != otherList[i])
return false;
}
return true;
}
IntegerList::Equals ( object objA, object objB ) : bool |