Click or drag to resize

PathComparerEquals Method (String, String)

Compares two strings which represent file system paths for equality.

Namespace:  PDTec.IceNet.Sdk.Utils
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public bool Equals(
	string path1,
	string path2
)

Parameters

path1
Type: SystemString
Can be null.
path2
Type: SystemString
Can be null.

Return Value

Type: Boolean
true if both normalized paths are equal or null. false otherwise.
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 returns false.
See Also