Previous  Next

Compare

Compares two values of type T.

int Compare(
    x,     // the first value
    y      // the second value
   );

Parameters

x

[in]  The first value to compare.

y

[in]  The second value to compare.

Return Value

Returns a number that expresses the ratio of the two compared values:

Note

The x and y values are compared based one one of he overloads of the Compare global method depending on the T type.