Quantity<T>.Equals

Method in Quantity<T>

Declaration

public bool Equals(Quantity<T> other)

Description

Determines if the quantity is equal to another quantity.

Parameters

otherThe quantity to compare to.

Returns

boolTrue if the quantities are equal, false otherwise.

Overload

Declaration

public override bool Equals(object other)

Description

Determines if the quantity is equal to another quantity.

Parameters

otherThe object to compare to.

Returns

boolTrue if the quantities are equal, false otherwise.