# IO.IsObsolete examples

Examples for [IsObsolete](https://developer.rhino3d.com/api/gh2/type/grasshopperio.io/isobsolete.md) in GrasshopperIO.IO.

## C#

```cs
using GrasshopperIO;

// As an extension method
bool result = type.IsObsolete(out string workAround);

// As a static method
result = IO.IsObsolete(type, out workAround);
```

## Python

```python
import clr
clr.AddReference('GrasshopperIO')
import GrasshopperIO
clr.ImportExtensions(GrasshopperIO)

# As an extension method
result, work_around = type.IsObsolete()

# As a static method
result, work_around = GrasshopperIO.IO.IsObsolete(type)
```
