Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserializing without knowing type at compile time #30

Open
Yanitrix opened this issue Nov 19, 2021 · 3 comments
Open

Deserializing without knowing type at compile time #30

Yanitrix opened this issue Nov 19, 2021 · 3 comments

Comments

@Yanitrix
Copy link

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)?

@Arlodotexe
Copy link

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.

@IbrahimElshafey
Copy link

Any updates?

@qsgy
Copy link

qsgy commented Nov 24, 2023

Any updates? :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants