on-internet
← Community

MessagePack: how to serialize without types information?

Stack Overflow ·

I try to serialize an object which contains a lists of another objects. I would like to send serialized data to front-end part of my application using SignalR. For serialization I use MessagePack library as a nuget package. My application is written in NET 8 (backend) and frontend uses ReactJS. I have tried serialize some data this way: var serializedData = MessagePackSerializer.Typeless.Serialize(graphic); But when I send this data over SignalR and in my browser I could see names of classes inside binary data like on the image below: (https://i.sstatic.net/qnmEM.png) In this image you could s

Comments

Sign in or sign up to comment and upvote.

No comments yet.