I'm hitting an exception during Serialize in .NET 5.0 on Windows running the sample code from the intro page on this repo. Any idea?
System.BadImageFormatException
HResult=0x8007000B
Message=Bad IL format.
Source=ZeroFormatter.DynamicObjectSegments
StackTrace:
at ZeroFormatter.DynamicObjectSegments.ZeroFormatter_Formatters_DefaultResolver.Program.MyClass$Formatter.Serialize(Byte[]& , Int32 , MyClass )
at ZeroFormatter.ZeroFormatterSerializer.CustomSerializer1.Serialize[T](Byte[]& buffer, Int32 offset, T obj) at ZeroFormatter.ZeroFormatterSerializer.CustomSerializer1.Serialize[T](T obj)
at ZeroFormatter.ZeroFormatterSerializer.Serialize[T](T obj)
at Program.Main(String[] args) in Program.cs:line 62
Hi,
I'm hitting an exception during Serialize in .NET 5.0 on Windows running the sample code from the intro page on this repo. Any idea?
System.BadImageFormatException HResult=0x8007000B Message=Bad IL format. Source=ZeroFormatter.DynamicObjectSegments StackTrace: at ZeroFormatter.DynamicObjectSegments.ZeroFormatter_Formatters_DefaultResolver.Program.MyClass$Formatter.Serialize(Byte[]& , Int32 , MyClass ) at ZeroFormatter.ZeroFormatterSerializer.CustomSerializer
1.Serialize[T](Byte[]& buffer, Int32 offset, T obj) at ZeroFormatter.ZeroFormatterSerializer.CustomSerializer
1.Serialize[T](T obj) at ZeroFormatter.ZeroFormatterSerializer.Serialize[T](T obj) at Program.Main(String[] args) in Program.cs:line 62