Npgsql Api Docs |

# NpgsqlInterval.CompareTo Method (NpgsqlInterval)

Compares this instance with another/

[Visual Basic]
NotOverridable Overloads Public Function CompareTo( _
ByVal other As NpgsqlInterval _
) As Integer _
Implements IComparable`1.CompareTo
[C#]
public int CompareTo(
NpgsqlInterval other
);

#### Parameters

other
  An NpgsqlInterval to compare this with.

#### Return Value

0 if the instances are equal or equivalent. A value less than zero if this instance is less than the argument. A value greater than zero if this instance is greater than the instance.

#### Implements

IComparable`1.CompareTo

#### See Also

NpgsqlInterval Class | NpgsqlTypes Namespace | NpgsqlInterval.CompareTo Overload List