Compare()

IComparer::Compare(const SharedPtr<Object>&, const SharedPtr<Object>&) const method

Comparison function.

virtual int System::Collections::IComparer::Compare(const SharedPtr<Object> &x, const SharedPtr<Object> &y) const =0

Arguments

ParameterTypeDescription
xconst SharedPtr<Object>&First object to compare.
yconst SharedPtr<Object>&Second 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