DirectoryPath.

Compare(DirectoryPath, DirectoryPath) Method

Summary

Compares two DirectoryPath and returns an indication of their relative sort order.
Namespace
Cake.Core.IO
Containing Type
DirectoryPath

Syntax

public int Compare(DirectoryPath x, DirectoryPath y)

Parameters

Name Type Description
x DirectoryPath The first Path to compare.
y DirectoryPath 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