## IComparer::Compare method


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

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| x | args_type | Primo oggetto da confrontare. |
| y | args_type | Secondo oggetto da confrontare. |

### ReturnValue

Valore negativo se **x** è minore di **y**; zero se sono uguali; valore positivo se **x** è maggiore di **y**.

## Vedi anche

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