# TwigExtensionMethods.TypeOverlap examples

Examples for [TypeOverlap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.twigextensionmethods/typeoverlap.md) in Grasshopper2.Extensions.TwigExtensionMethods.

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
TypeOverlap result = twig.TypeOverlap();

// As a static method
result = TwigExtensionMethods.TypeOverlap(twig);
```

## Python

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

# As an extension method
result = twig.TypeOverlap()

# As a static method
result = Grasshopper2.Extensions.TwigExtensionMethods.TypeOverlap(twig)
```
