# ReflectionExtensionMethods.IsKindOf examples

Examples for [IsKindOf](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.reflectionextensionmethods/iskindof.md) in Grasshopper2.Extensions.ReflectionExtensionMethods.

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
bool result = type.IsKindOf(other);

// As a static method
result = ReflectionExtensionMethods.IsKindOf(type, other);
```

## Python

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

# As an extension method
result = type.IsKindOf(other)

# As a static method
result = Grasshopper2.Extensions.ReflectionExtensionMethods.IsKindOf(type, other)
```
