Using custom serializer/deserializer

Oct 18, 2011 at 2:49 PM

Hello. First of all, Thank you for sharing this great product.

I was looking into discussion list and found there's some issues with serializing/deserializing.

I found some solutions and found sharpSerializer (http://sharpserializer.codeplex.com/) which support more types of object.

Can I use this instead of embedded serializer? If possible, what should I change?

 

Thank you.

Coordinator
Oct 18, 2011 at 5:17 PM

First, do you have an object that is too difficult to serialize? Can you send the class definition of your object?

Adding another piece of software increases fragility and a serializer which uses reflection will hurt performance. If you don't care about size of serialized object or performance, the easiest thing to do is pass the serialized object as a byte array and deserialize at the subscribing side. This way you don't need to touch any of the pub/sub code.