# Site class

Namespace: [Grasshopper2.Data](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.data.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
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](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.site/ctor.md): Create a new instance of the Site class.

## Properties

- [Item](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.site/item.md): Gets the list item portion of this site. The index is guaranteed to never be negative.
- [Path](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.site/path.md): Gets the path portion of this site.

## Methods

- [CompareTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.site/compareto.md): Compare this site to another one.
- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.site/equals.md): (2 overloads) Test to see whether this site is identical to another one.
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.site/gethashcode.md): Gets a hash code describing this site.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.site/tostring.md): Gets the string representation for this site.

## Operators

- [operator ==](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.site/op-equality.md): (static)
- [operator !=](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.site/op-inequality.md): (static)
