# Pear<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 Pear<T> : IPear
```

This class is the generic implementation of the [IPear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.ipear.md) interface.

**Type parameters:**

- `T`

## Properties

- [IPear.Item](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pear-1/grasshopper2-data-ipear-item.md): Gets the Item.
- [Item](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pear-1/item.md): Gets the item value.
- [Meta](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pear-1/meta.md): Gets the meta data associated with the item.
- [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pear-1/type.md): Gets the exact (cached) type of the Item.

## Methods

- [Create](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pear-1/create.md): (2 overloads, static) Create a pear from a value and metadata. If the value is null, a null pear will be returned.
- [Iterate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pear-1/iterate.md): (2 overloads, static) Iterate over a collection of items and a collection of meta data.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pear-1/tostring.md): Describe this pear.
