public class Path : IEquatable<Path>, IComparable<Path>
A sequence of names, identifying a node or item from the root of an archive.

Constructors

Path

#
public Path(params Name[] path)
path (params Name[])

Properties

Length

#
public int Length { get; }
Gets the number of steps in this path.

Tail

#
public Name Tail { get; }
Gets the last location in this path.

Indexers

this[]

#
public Name this[int index] { get; }
Gets the location step at the given index.
index (int)

Methods

Append

#
public Path Append(Name step)
Append a new step to this path.
step (Name)

CompareTo

#
public int CompareTo(Path other)
other (Path)

Equals

#
public override bool Equals(object obj)
obj (object)
Object.Equals

Equals

#
public bool Equals(Path other)
other (Path)

GetHashCode

#
public override int GetHashCode()

StartsWith

#
public bool StartsWith(Path other)
Tests whether this path starts with the other path.
other (Path)

ToString

#
public override string ToString()
Object.ToString

Operators

OperationResultDescription
Path+NamePath