IPreparedComparison.

CompareTo(Object) Method

Summary

return a negative int, zero or a positive int if the object being held in 'this' is smaller, equal or greater than the passed object.

Typical implementation: return this.object - obj;

Syntax

int CompareTo(Object obj)

Parameters

Name Type Description
obj Object

Return Value

Type Description
int