Reading and writing abstract "Enum" type will crash
Closed this issue · 0 comments
Kermalis commented
Reading should throw an error on EndianBinaryIO's side because the underlying type would be unknown.
Writing should not throw; it instead should use value.GetType()
instead of typeof(TEnum)
to fetch the correct type rather than Enum
itself in this case