System::Collections::Generic::IComparer::Compare 方法

IComparer::Compare method

Comparison function.

virtual int System::Collections::Generic::IComparer<T>::Compare(args_type x, args_type y) const =0
参数类型描述
xargs_type要比较的第一个对象。
yargs_type要比较的第二个对象。

ReturnValue

如果 x 小于 y,则为负值;如果相等,则为零;如果 x 大于 y,则为正值。

另见