Duration.Equals Method (Duration) |
Returns
true if this
Duration exactly equals another
Duration, within the limits
of floating point precision. To be considered equal, the
Days
and
Standard properties must be identical (or one must be null) and the
difference between the
Seconds properties must be less than 1.0e-10.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntaxpublic bool Equals(
Duration other
)
Public Function Equals (
other As Duration
) As Boolean
public:
virtual bool Equals(
Duration other
) sealed
abstract Equals :
other : Duration -> bool
override Equals :
other : Duration -> bool
Parameters
- other
- Type: AGI.Foundation.Time.Duration
The other Duration.
Return Value
Type:
Booleantrue if this
Duration exactly equals the
otherDuration, within the limits of floating point precision.
Implements
IEquatable<T>.Equals(T)
Remarks
This method returns false if the two instances have different time standards,
even if the values would be the same when converted to the same time standard.
See Also