# TwigExtensionMethods.PearsBackwards<T> examples

Examples for [PearsBackwards<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.twigextensionmethods/pearsbackwards.md) in Grasshopper2.Extensions.TwigExtensionMethods.

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
IEnumerable<Pear<T>> result = twig.PearsBackwards(firstIndex);

// As a static method
result = TwigExtensionMethods.PearsBackwards(twig, firstIndex);
```

## Python

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

# As an extension method
result = twig.PearsBackwards(first_index)

# As a static method
result = Grasshopper2.Extensions.TwigExtensionMethods.PearsBackwards(twig, first_index)
```
