MarkLogic XCC/.Net Library

Duration.Equals Method 

Compares this XdmDuration object to the specified object. The result is true if and only if the argument is not null and the sign, year, month, day, hours, minutes, seconds and subseconds values have the same value as this object.

[Visual Basic]
Overrides Public Function Equals( _
   ByVal otherObj As Object _
) As Boolean
[C#]
public override bool Equals(
   object otherObj
);

Parameters

otherObj
the Duration object to compare

Return Value

true if the objects have the same duration value, false otherwise.

See Also

Duration Class | Marklogic.Xcc.Types Namespace