## 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 | Typ | Beschreibung |
| --- | --- | --- |
| x | args_type | Erstes Objekt zum Vergleichen. |
| y | args_type | Zweites Objekt zum Vergleichen. |

### ReturnValue

Negativer Wert, wenn **x** kleiner als **y** ist; Null, wenn sie gleich sind; positiver Wert, wenn **x** größer als **y** ist.

## Siehe auch

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