Equals Method
Definition
Equals(IUnit)
Indicates whether the current object is equal to another object of the same type.
public virtual bool Equals(IUnit other)
Parameters
otherIUnitAn object to compare with this object.
Returns
- bool
trueif the current object is equal to theotherparameter; otherwise,false.
Equals(object)
Determines whether the specified Object is equal to this instance.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.