# TwigExtensionMethods class

Namespace: [Grasshopper2.Extensions](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.extensions.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class TwigExtensionMethods
```

## Methods

- [Cycle<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.twigextensionmethods/cycle.md): (static) Cycle all the items and metas in a twig until the item at the given index is the first item in the twig.
- [GetNonNullIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.twigextensionmethods/getnonnullindex.md): (static) Find the twig index which is associated with the i-th non-null item index.
- [ItemsBackwards<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.twigextensionmethods/itemsbackwards.md): (static) Enumerate backwards over all non-null items in a twig starting at a given offset.
- [ItemsForwards<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.twigextensionmethods/itemsforwards.md): (static) Enumerate forwards over all non-null items in a twig starting at a given offset.
- [NonNullIndices](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.twigextensionmethods/nonnullindices.md): (static) Get an array containing all the indices of non-null items in the twig.
- [PearsBackwards<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.twigextensionmethods/pearsbackwards.md): (static) Enumerate backwards over all non-null items in a twig starting at a given offset.
- [PearsForwards<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.twigextensionmethods/pearsforwards.md): (static) Enumerate forwards over all non-null items in a twig starting at a given offset.
- [TypeOverlap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.twigextensionmethods/typeoverlap.md): (static) Resolve the type overlap for all types (minus all nulls) in a twig.
