> 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.md).

# TypeBase

Class in [Yarn](/3.1/api/csharp/yarn.md)

Inherits from `System.Object`

## Summary

Provides the base class for all concrete types.

```csharp
public abstract class TypeBase : IType, IEquatable<TypeBase>
```

## Methods

| Name                                                                                             | Description                                                                 |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
| [Equals(object)](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.equals-2.md)                   |                                                                             |
| [Equals(TypeBase)](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.equals-1.md)                 |                                                                             |
| [GetHashCode()](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.gethashcode.md)                 |                                                                             |
| [IsAncestorOf(TypeBase)](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.isancestorof.md)       | Gets whether this type is an ancestor of `other` .                          |
| [IsConvertibleTo(TypeBase)](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.isconvertibleto.md) | Checks if this type is convertible to the type represented by `otherType` . |
| [ToString()](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.tostring.md)                       |                                                                             |

## Properties

| Name                                                                                         | Description                                                      |
| -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [ConvertibleToTypes](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.convertibletotypes.md) | Gets the collection of types that this type may be converted to. |
| [Description](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.description.md)               | Gets a string describing this type.                              |
| [Methods](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.methods.md)                       | Gets the collection of methods that are defined on this type.    |
| [Name](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.name.md)                             | Gets the name of this type.                                      |
| [Parent](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.parent.md)                         | Gets the parent of this type.                                    |
| [TypeMembers](/3.1/api/csharp/yarn/yarn.typebase/yarn.typebase.typemembers.md)               | Gets a dictionary containing the members of this type.           |
