## 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 | Beschrijving |
| --- | --- | --- |
| x | args_type | Eerste object om te vergelijken. |
| y | args_type | Tweede object om te vergelijken. |

### ReturnValue

Negatieve waarde als **x** kleiner is dan **y**; nul als ze gelijk zijn; positieve waarde als **x** groter is dan **y**.

## Zie ook

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