public sealed class Site : IComparable<Site>, IEquatable<Site>
Identifies a single site in a data tree. A site is the position of a single item. To identify a single item unambiguously, both a path and an index are required.

Constructors

Site

#
public Site(Path path, int item)
Create a new instance of the Site class.
path (Path)Path portion.
item (int)Item integer portion.

Properties

Item

#
public int Item { get; }
Gets the list item portion of this site. The index is guaranteed to never be negative.

Path

#
public Path Path { get; }
Gets the path portion of this site.

Methods

CompareTo

#
public int CompareTo(Site other)
Compare this site to another one.
other (Site)
The sort order of these two locii.

Equals

#
public override bool Equals(object obj)
Test to see whether this site is identical to another one.
obj (object)Site to compare to.
True if the locii are identical.
Object.Equals

Equals

#
public bool Equals(Site other)
Test to see whether this site is identical to another one.
other (Site)Site to compare to.
True if the locii are identical.

GetHashCode

#
public override int GetHashCode()
Gets a hash code describing this site.

ToString

#
public override string ToString()
Gets the string representation for this site.
Object.ToString

Operators

OperationResultDescription
Site==Sitebool
Site!=Sitebool