Summary
Compares two Paths and returns an indication of their relative sort order.
Syntax
public int Compare(Path x, Path y)
Parameters
Name |
Type |
Description |
x |
Path |
The first Path to compare. |
y |
Path |
The second Path to compare. |
Return Value
Type |
Description |
int |
A signed integer that indicates the relative values of x and y.
x precedes y in the sort order, or x is null and y is not null.x is equal to y, or x and y are both null.
x follows y in the sort order, or y is null and x is not null.
Less than zero |
Zero |
Greater than zero |
|