## IComparer::Compare method


[Comparison](../../../system/comparison/) function.

```cpp
virtual int System::Collections::Generic::IComparer<T>::Compare(args_type x, args_type y) const =0
```


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| x | args_type | Πρώτο αντικείμενο για σύγκριση. |
| y | args_type | Δεύτερο αντικείμενο για σύγκριση. |

### ReturnValue

Αρνητική τιμή εάν **x** είναι μικρότερο από **y**· μηδέν εάν είναι ίσα· θετική τιμή εάν **x** είναι μεγαλύτερο από **y**.

## Δείτε επίσης

* Typedef [args_type](../args_type/)
* Class [IComparer](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
