> 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.compiler/yarn.compiler.enumtypebuilder/yarn.compiler.enumtypebuilder.fromenum.md).

# FromEnum\<TEnum>(string?)

Method in [EnumTypeBuilder](/api/csharp/yarn.compiler/yarn.compiler.enumtypebuilder.md)

## Summary

```csharp
public static EnumType FromEnum<TEnum>(string? description = null)
    where TEnum : System.Enum
```

## Parameters

| Name                 | Description |
| -------------------- | ----------- |
| `string` description |             |
