# IsAncestorOf(TypeBase)

Method in [TypeBase](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.typebase)

## Summary

Gets whether this type is an ancestor of `other` .

```csharp
public bool IsAncestorOf(TypeBase other)
```

## Parameters

| Name                                                                              | Description        |
| --------------------------------------------------------------------------------- | ------------------ |
| [Yarn.TypeBase](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.typebase) other | The type to check. |

## Returns

`true` if this type is an ancestor of `other` ; `false` otherwise.
