Constructors
AbsRelPaths
#Create a new file path. Arguments may not both be null. If both are specified, it is up to the caller to ensure they are mutually correct.
Parameters:
| absolute (FileSystemPath) | Absolute path. |
| relative (FileSystemPath) | Relative path. |
Exceptions:
| ArgumentNullException | Thrown if both the uris are null. |
Properties
Methods
Resolve
#Resolve the absolute paths implied by this pair.
Parameters:
| origin (string) | Origin, required to resolve the relative path. |
| absolute (out string) | The absolute path, if available. |
| relative (out string) | The absolute path as implied by the origin and the relative path. |
| absoluteExists (out bool) | If the 'absolute' path was set, a value indicating whether there's a file there. |
| relativeExists (out bool) | If the 'relative' path was resolved, a value indicating whether there's a file there. |
Returns: The suggested path. This is the relative path if it can be resolved and points to an existing file, otherwise it's the absolute path if it points to an existing file. If neither path specify a file, null is returned.
Resolve
#Resolve the absolute paths implied by this pair.
WithRelative
#If this pair contains an absolute but not a relative uri, create a new pair with a relative Uri from the baseUri to the Absolute uri.
Parameters:
| origin (FileSystemPath) | Base uri. |
Returns: This pair, or a pair with a specified relative uri.