# EnumType

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

Inherits from [`TypeBase`](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.typebase)

## Summary

A type that represents enumerations.

```csharp
public class EnumType : TypeBase
```

## Constructors

| Name                                                                                                               | Description                                                                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [EnumType(string,string,TypeBase)](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.enumtype/yarn.enumtype..ctor) | Initializes a new instance of the [EnumType](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.enumtype) class that represents an enum type. This type has no methods of its own, and is a subtype of [Any](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.types/yarn.types.any) . |

## Properties

| Name                                                                                                | Description                                     |
| --------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
| [Description](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.enumtype/yarn.enumtype.description) | Gets a string describing this type.             |
| [EnumCases](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.enumtype/yarn.enumtype.enumcases)     | Gets the collection of enum cases in this enum. |
| [Name](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.enumtype/yarn.enumtype.name)               | Gets the name of this type.                     |
| [Parent](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.enumtype/yarn.enumtype.parent)           | Gets the parent of this type.                   |
| [RawType](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.enumtype/yarn.enumtype.rawtype)         | Gets the type of this enum's members.           |
