Property Universal
Universal
Gets a universal cross-platform path format that plays nice across all operating systems. Only non-rooted relative paths are supported.
Declaration
public static PathFormat Universal { get; }
Property Value
Type | Description |
---|---|
PathFormat |
Remarks
The universal path format is useful for storing relative paths in a cross-platform compatible fashion and only allows paths that are valid on
all platforms. It only supports the forward slash (/
) character as a path separator, which works on both Windows and Unix-based systems
alike. Attempting to parse paths containing backslashes (\
) will throw an exception, but you can convert a Windows format path
with backslashes to a Universal format path with methods like `ToPathFormat(PathFormat, PathOptions).