Size.CompareTo

Method in Size

Declaration

public int CompareTo(Size other)

Description

Compares this instance with another and returns an integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the other instance.

Parameters

otherThe size to compare to.

Returns

int Greater than zero if this instance follows the other, less than zero if this instance precedes the other, and zero if this instance has the same position as the other.