NormalizedPath Class

Summary

Provides properties and instance methods for working with paths.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.IO
Interfaces
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(string, PathKind) Initializes a new instance of the Wyam.Common.IO.NormalizedPath class.
NormalizedPath(string, string, PathKind) Initializes a new instance of the Wyam.Common.IO.NormalizedPath class with the given provider.
NormalizedPath(Uri) 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(Uri, string, PathKind) 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(NormalizedPath) int
CompareTo(Object) int
Equals(Object) bool
GetHashCode() int
ToString() string
Returns a string that represents this path.
GitHub