YamlDotNet: Exception during deserialization of nullable enum >= YamlDotNet v9.1.0
Problem deserializing nullable enum with YamlDotNet v9.1.0, no issue on v8.1.2.
Is this intended?
public enum LanguageMode
{
FullLanguage = 0,
ConstrainedLanguage = 1
}
public sealed class ExecutionOption : IEquatable<ExecutionOption>
{
[DefaultValue(null)]
public LanguageMode? LanguageMode { get; set; }
}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 8
- Comments: 15
Commits related to this issue
- Workaround https://github.com/aaubry/YamlDotNet/issues/544 — committed to openmod/openmod by Trojaner 3 years ago