Table of Contents

Enum StringToEnumConversion

Namespace
ForgeMap
Assembly
ForgeMap.Abstractions.dll

Controls automatic string-to-enum conversion behavior for property mappings.

public enum StringToEnumConversion

Fields

None = 2

Do not auto-convert; require explicit [ForgeFrom] resolver.

Parse = 0

Use Enum.Parse with null/empty string guard (returns default(T) for null/empty). Default.

StrictParse = 3

Use Enum.Parse without null/empty guard (throws on null/empty values). Legacy behavior.

TryParse = 1

Use Enum.TryParse (falls back to default(T) on failure).