Summary
Provides properties and instance methods for working with paths.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .IO - Interfaces
-
- IComparable
<NormalizedPath> - IComparable
- IEquatable
<NormalizedPath>
- IComparable
- Base Types
-
- Object
- Derived Types
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IComparable<NormalizedPath>"]
Type-.->Interface1["IComparable"]
Type-.->Interface2["IEquatable<NormalizedPath>"]
Type["NormalizedPath"]
class Type type-node
Derived0["DirectoryPath"]-->Type
click Derived0 "/api/Wyam.Common.IO/DirectoryPath"
Derived1["FilePath"]-->Type
click Derived1 "/api/Wyam.Common.IO/FilePath"
Syntax
public abstract class NormalizedPath : IComparable<NormalizedPath>, IComparable,
IEquatable<NormalizedPath>
Constructors
| Name | Summary |
|---|---|
| NormalizedPath |
Initializes a new instance of the Wyam.Common.IO.NormalizedPath class.
|
| NormalizedPath |
Initializes a new instance of the Wyam.Common.IO.NormalizedPath class
with the given provider.
|
| NormalizedPath |
Initializes a new instance of the Wyam.Common.IO.NormalizedPath class. The new path
will be absolute if the specified URI is absolute, otherwise it will be relative.
|
| NormalizedPath |
Initializes a new instance of the Wyam.Common.IO.NormalizedPath class
with the given provider.
|
Fields
| Name | Constant Value | Summary |
|---|---|---|
| DefaultFileProvider |
The default file provider.
static
|
Properties
| Name | Value | Summary |
|---|---|---|
| FileProvider | Uri |
Gets the file provider for this path. If this is a relative path,
the file provider will always be
null. If this is an absolute
path and the file provider is null it indicates the path
is not intended for use with an actual file provider.
|
| FullPath | string |
Gets the full path.
|
| IsAbsolute | bool |
Gets or sets a value indicating whether this path is absolute.
|
| IsRelative | bool |
Gets a value indicating whether this path is relative.
|
| Root | DirectoryPath |
Gets the root of this path or "." if this is a relative path
or there is no root.
|
| Segments | string[] |
Gets the segments making up the path.
|
Methods
| Name | Value | Summary |
|---|---|---|
| CompareTo |
int | |
| CompareTo |
int | |
| Equals |
bool | |
| GetHashCode |
int | |
| ToString |
string |
Returns a
string that represents this path.
|
