PathComparerCompare Method |
Lexicographically compares two strings for relative order.
Namespace:
PDTec.IceNet.Sdk.Utils
Assembly:
PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax public int Compare(
string path1,
string path2
)
Parameters
- path1
- Type: SystemString
Can be null. - path2
- Type: SystemString
Can be null.
Return Value
Type:
Int32This function returns negative value, 0, or positive value when
path1 is lexicographically less than, equal to or greater than
path2Implements
IComparerTCompare(T, T)Remarks This function compares strings, and does not check if both paths point to the same file or directory. So when both paths point
to the same filesystem entry via differently named network shares, symbolic links, junction points etc., it will not return 0.
See Also