All pages
Powered by GitBook
1 of 1

Loading...

FromEnum<TEnum>(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.Enum

Parameters

Name
Description

Type Parameters

Name
Description

Returns

A Yarn type representing the enum.

string description

An optional description to apply to the new Yarn enum type.

TEnum

The type of the CLR enum.