Because of these differences, the fields of the Path class as well as the exact behavior of some members of the Path class are platform-dependent.
A path can contain absolute or relative location information.
The format of a file name extension is platform-dependent; for example, some systems limit extensions to three characters, and others do not.
The current platform also determines the set of characters used to separate the elements of a path, and the set of characters that cannot be used when specifying paths.
For example, the Get Extension method parses a string that you pass to it and returns the extension from that string.
However, this does not mean that a file with that extension exists on the disk.
For example, on some systems, a path can start with a drive or volume letter, while this element is not present in other systems.
On some systems, file paths can contain extensions, which indicate the type of information stored in the file.To determine the current directory, call Directory Get Current Directory.Most members of the Path class do not interact with the file system and do not verify the existence of the file specified by a path string.Path class members that modify a path string, such as Change Extension, have no effect on names of files in the file system.Path members do, however, validate the contents of a specified path string, and throw an Argument Exception exception if the string contains characters that are not valid in path strings, as defined in the characters returned from the Get Invalid Path Chars method.All members of the Path class are static and can therefore be called without having an instance of a path.