طريقة 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.

انظر أيضًا