Click or drag to resize

PathComparer Methods

The PathComparer type exposes the following members.

Methods
  NameDescription
Public methodCompare
Lexicographically compares two strings for relative order.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquals(String, String)
Compares two strings which represent file system paths for equality.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHashCode(String)
Calculate hash code of a file system path.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberNormalize
Converts path to its normalized representation:
  • Converts relative path to absolute path, using current directory and current drive information
  • Replaces 'dot' path segments ('.' and '..') with appropriate directories
  • Converts directory separators to primary directory separator
  • Converts shortened 8.3 names to long names
  • Strips trailing directory separators
  • It's not required to normalize casing
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also