# Pear.WithMeta<T> examples

Examples for [WithMeta<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.data.pear/withmeta.md) in Grasshopper2.Data.Pear.

## C#

```cs
using Grasshopper2.Data;

// As an extension method
Pear<T> result = pear.WithMeta(meta);

// As a static method
result = Pear.WithMeta(pear, meta);
```

## Python

```python
import clr
clr.AddReference('Grasshopper2')
import Grasshopper2.Data
clr.ImportExtensions(Grasshopper2.Data)

# As an extension method
result = pear.WithMeta(meta)

# As a static method
result = Grasshopper2.Data.Pear.WithMeta(pear, meta)
```
