# TypeBase

Class in [Yarn](https://docs.yarnspinner.dev/api/csharp/yarn)

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)](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.typebase/yarn.typebase.equals-2)                   |                                                                             |
| [Equals(TypeBase)](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.typebase/yarn.typebase.equals-1)                 |                                                                             |
| [GetHashCode()](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.typebase/yarn.typebase.gethashcode)                 |                                                                             |
| [IsAncestorOf(TypeBase)](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.typebase/yarn.typebase.isancestorof)       | Gets whether this type is an ancestor of `other` .                          |
| [IsConvertibleTo(TypeBase)](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.typebase/yarn.typebase.isconvertibleto) | Checks if this type is convertible to the type represented by `otherType` . |
| [ToString()](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.typebase/yarn.typebase.tostring)                       |                                                                             |

## Properties

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