FilePath.

Compare(FilePath, FilePath) Method

Summary

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

Syntax

public int Compare(FilePath x, FilePath y)

Parameters

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