YamlDotNet icon indicating copy to clipboard operation
YamlDotNet copied to clipboard

SerializeAs not working

Open seanmars opened this issue 7 years ago • 0 comments
trafficstars

[YamlMember(SerializeAs = typeof(int))]
public MyStruct Struct { get; set; }

enum MyStruct
{
  None = 0,
  First = 1
}

But the output still

Struct: None

seanmars avatar Oct 15 '18 07:10 seanmars