Table of Contents

Method Compare

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

Compare(object, object)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

public int Compare(object x, object y)

Parameters

x object

The first object to compare.

y object

The second object to compare.

Returns

int

A signed integer that indicates the relative values of x and y, as shown in the following table.Value Meaning Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y.

Exceptions

ArgumentException

Neither x nor y implements the IComparable interface.-or- x and y are of different types and neither one can handle comparisons with the other.