EnumTypeBuilder.FromEnum(string?)
Method in EnumTypeBuilder
Summary
Creates a new EnumType given a CLR enum type.
public static EnumType FromEnum<TEnum>(string? description = null)
where TEnum : System.EnumParameters
| Name | Description |
|---|---|
string description | An optional description to apply to the new Yarn enum type. |
Type Parameters
| Name | Description |
|---|---|
| TEnum | The type of the CLR enum. |
Returns
A Yarn type representing the enum.