You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If enum member name "Null" , Deserialization will fail.
public enum SomeEnum
{
Abc,
Null
}
public class SomeClass
{
public SomeEnum Prop { get; set; }
}
class Program
{
static void Main()
{
var srcObj = new SomeClass
{
Prop = SomeEnum.Null
};
var sw = new StringWriter();
new Serializer().Serialize(sw, srcObj);
var yaml = sw.ToString();
var dstObj = new Deserializer().Deserialize<SomeClass>(yaml);
Debug.Assert(dstObj.Prop == SomeEnum.Null);
}
}
The text was updated successfully, but these errors were encountered:
YamlDotNet 4.3.1
If enum member name "Null" , Deserialization will fail.
The text was updated successfully, but these errors were encountered: