# Leaf<T> 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 Leaf<T> : ILeaf
```

Generic implementation of [ILeaf](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.ileaf.md).

**Type parameters:**

- `T`

## Constructors

- [Leaf<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.leaf-1/ctor.md): Construct a new leaf.

## Properties

- [ILeaf.Pear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.leaf-1/grasshopper2-data-ileaf-pear.md)
- [Pear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.leaf-1/pear.md): Item and meta pear.
- [Site](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.leaf-1/site.md): Gets the site for this entry.

## Methods

- [MergeMeta](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.leaf-1/mergemeta.md): Merge the existing meta data with other meta data.
- [ReplaceItem](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.leaf-1/replaceitem.md): Create a new leaf with a new item.
- [ReplaceMeta](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.leaf-1/replacemeta.md): Replace the meta data.
