|
|
|
|
Compare Method, SortDescending Class |
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Syntax SortDescending Class (Softelvdm.SftTreeNET)
VB |
Public Overridable NotOverridable Function Compare( _ |
C# |
public virtual final int Compare( |
C++ |
public: virtual int Compare( |
x
The first object to compare. This object can be cast into an ItemClass object.
y
The second object to compare. This object can be cast into an ItemClass object.
Return Value
The collating sequence. Return a value greater than zero to indicate that x is greater than y, equal to 0 to indicate that x and y are equal, a value less than zero to indicate x is less than y.
Comments
The Compare method compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.