CreateStringEnumTypeInfo(TomlSerializerOptions) Method

Definition

Assembly Tomlyn.dll

Creates metadata for an enum type that writes values as strings.

protected static TomlTypeInfo<TEnum> CreateStringEnumTypeInfo<TEnum>(TomlSerializerOptions options)
    where TEnum : struct, Enum

Type parameters

TEnum
The enum type.

Parameters

options
TomlSerializerOptions

The serializer options.

Returns

TomlTypeInfo<T>
The enum metadata.