> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.isancestorof.md).

# IsAncestorOf(TypeBase)

Method in [TypeBase](/3.1/api/csharp/yarn/yarn.typebase.md)

## Summary

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

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

## Parameters

| Name                                                         | Description        |
| ------------------------------------------------------------ | ------------------ |
| [Yarn.TypeBase](/3.1/api/csharp/yarn/yarn.typebase.md) other | The type to check. |

## Returns

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