public bool EmitNativeUnionProtocolGets or sets whether to emit .NET 11+ [Union] / TryGetValue integration when available. Defaults to true.
All Types / Ferrous
public sealed class DiscriminatedUnionAttribute : Attribute
Marks a partial struct or record as a discriminated union whose boilerplate (case wrappers, structural equality, exhaustive Match, and .NET 11+ [Union] protocol) is generated by Ferrous.Unions.
public bool EmitNativeUnionProtocolGets or sets whether to emit .NET 11+ [Union] / TryGetValue integration when available. Defaults to true.
public bool GenerateJsonConverterGets or sets whether to emit a NativeAOT-safe System.Text.Json.Serialization.JsonConverter<T> for this discriminated union. Defaults to false.