Unit.Equals

Unit.Equals method

Determines whether this instance and a specified object, which must also be a Unit object, have the same value.

public override bool Equals(object obj)
ParameterTypeDescription
objObjectThe Unit to compare to this instance.

Return Value

true if obj is a Unit and its value is the same as this instance; otherwise, false. If obj is null, the method returns false.

See Also