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.Enum

Parameters

NameDescription
string descriptionAn optional description to apply to the new Yarn enum type.

Type Parameters

NameDescription
TEnumThe type of the CLR enum.

Returns

A Yarn type representing the enum.