Compare()

IComparer::Compare(args_type, args_type) const method

Comparison function.

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

Arguments

ParameterTypeDescription
xargs_typeFirst object to compare.
yargs_typeSecond object to compare.

Return Value

Negative value if x is less than y; zero if they are equal; positive value if x is greater than y.

See Also