Meryuhi
Meryuhi
Hi, I think there seems to be a bit of a compatibility issue with `reference types` (class or record) and `static virtual members in interfaces` (which MemoryPack source generation part...
Try using struct for `Someclass` as well.
Well, I don't seem to find `SerializeBuffer` method in MemoryPackSerializer. And I tested with similar code and it works. Is there something different about your use case? ``` using MemoryPack;...
Oh I see, the root object must be a reference type if use `Deserialize(Type, ReadOnlySpan)`, MemoryPack won't check that if the type is value type or something special. It doesn't...
Maybe you can put following code somewhere to prevent trimming. ```csharp MemoryPackFormatterProvider.RegisterDictionary(); ``` Or use a `MemoryPackable(GenerateType.Collection)` type that extends from `Dictionary`.
Yes, it should happen automatically as you said, registering the formatters manually is just a workaround. I guess it could be solved by #251...