Dela via


Range<T>.CompareTo(Range<T>) Method

Definition

Compares two ranges.

public int CompareTo (Microsoft.Azure.Documents.Partitioning.Range<T> other);
abstract member CompareTo : Microsoft.Azure.Documents.Partitioning.Range<'T (requires 'T :> IComparable<'T> and 'T :> IEquatable<'T>)> -> int
override this.CompareTo : Microsoft.Azure.Documents.Partitioning.Range<'T (requires 'T :> IComparable<'T> and 'T :> IEquatable<'T>)> -> int
Public Function CompareTo (other As Range(Of T)) As Integer

Parameters

other
Range<T>

The other range to compare to.

Returns

Returns -1 if the range is smaller than the passed range, 1 if bigger and 0 if equal.

Implements

Applies to