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
ParameterTypeΠεριγραφή
xargs_typeΠρώτο αντικείμενο για σύγκριση.
yargs_typeΔεύτερο αντικείμενο για σύγκριση.

ReturnValue

Αρνητική τιμή εάν x είναι μικρότερο από y· μηδέν εάν είναι ίσα· θετική τιμή εάν x είναι μεγαλύτερο από y.

Δείτε επίσης