## IComparer::Compare method


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

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| x | args_type | Primer objeto para comparar. |
| y | args_type | Segundo objeto para comparar. |

### ReturnValue

Valor negativo si **x** es menor que **y**; cero si son iguales; valor positivo si **x** es mayor que **y**.

## Ver también

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