## IComparer::Compare method


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

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


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| x | args_type | 비교할 첫 번째 객체. |
| y | args_type | 비교할 두 번째 객체. |

### ReturnValue

음수 값은 **x**가 **y**보다 작을 때; 0은 두 값이 같을 때; 양수 값은 **x**가 **y**보다 클 때.

## 또 보기

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