# Pear.WithMeta examples

Examples for [WithMeta](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
IPear 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)
```
