Compare()

DefaultComparer::Compare(typename ThisType::args_type, typename ThisType::args_type) const method

Actual data comparison.

virtual int System::Collections::Generic::DefaultComparer<T>::Compare(typename ThisType::args_type x, typename ThisType::args_type y) const override

Arguments

ParameterTypeDescription
xtypename ThisType::args_typeLHS operand.
ytypename ThisType::args_typeRHS operand.

Return Value

Negative value if x is less than y, 0 if operands are equal and positive value otherwise.

See Also