BinaryPack icon indicating copy to clipboard operation
BinaryPack copied to clipboard

Deserializing without knowing type at compile time

Open Yanitrix opened this issue 3 years ago • 3 comments

Hello!

As far as I can see, BinaryConverter offers only generic Deserialize<T> method. I would, however, like to deserialize bytes to a target type that is known only at runtime. (I know I can call the Deserialize<T> method with reflection given the type).
So my question is: are you considering implementing method like Deserialize(Type targetType, byte[] bytes)?

Yanitrix avatar Nov 19 '21 22:11 Yanitrix

Pretty standard thing among serializers as far as I can tell, and hopefully any level of built-in support is better than just using reflection.

Arlodotexe avatar Mar 04 '22 04:03 Arlodotexe

Any updates?

IbrahimElshafey avatar Jun 03 '23 11:06 IbrahimElshafey

Any updates? :D

qsgy avatar Nov 24 '23 17:11 qsgy