> 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/api/csharp/yarn/yarn.enumtype/yarn.enumtype..ctor.md).

# EnumType(string,string,TypeBase)

Constructor in [EnumType](/api/csharp/yarn/yarn.enumtype.md)

## Summary

Initializes a new instance of the [EnumType](/api/csharp/yarn/yarn.enumtype.md) class that represents an enum type. This type has no methods of its own, and is a subtype of [Any](/api/csharp/yarn/yarn.types/yarn.types.any.md) .

```csharp
public EnumType(string name, string description, TypeBase rawType)
```

## Parameters

| Name                                                       | Description                          |
| ---------------------------------------------------------- | ------------------------------------ |
| `string` name                                              | The name of this method.             |
| `string` description                                       | A string that describes this method. |
| [Yarn.TypeBase](/api/csharp/yarn/yarn.typebase.md) rawType |                                      |
