GridSize.CompareTo

Method in GridSize

Declaration

public int CompareTo(GridSize 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 grid 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.