Kermalis/EndianBinaryIO

Reading and writing abstract "Enum" type will crash

Closed this issue · 0 comments

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