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.
Exceptions:
| ArgumentNullException | Thrown if both the uris are null. |
Properties
Methods
Equals
#Resolve
#Resolve the absolute paths implied by this pair.
public string Resolve()
origin,
Origin, required to resolve the relative path.
out string
absolute,
The absolute path, if available.
out string
relative,
The absolute path as implied by the origin and the relative path.
out bool
absoluteExists,
If the 'absolute' path was set, a value indicating whether there's a file there.
out bool
relativeExists
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.
Returns: The suggested path. This is always the relative path if it can be resolved.