Skip to content

Conversation

@StefH
Copy link
Contributor

@StefH StefH commented Nov 11, 2025

Add generic DeserializeTo

  • Using .Result on async task is not the best practice, so I changed this in this PR, however this should be changed in the whole project, I can create a new PR if needed
  • I tried to comply to your coding standard, however it's quite different as I'm used to...
  • I did only add 1 extra unit test, if more is needed, I can add it

@basdijkstra
Copy link
Owner

Thanks @StefH! I’ll have a look at this tomorrow.

@basdijkstra
Copy link
Owner

Using generics and changing to DeserializeTo<T>() is a great idea, thanks again, @StefH !

What I'm going to do is make this new implementation the default, and deprecating the old one. I like the idea of users no longer having to add explicit typecasting!

I'll also refactor the tests myself, no worries. Really appreciate you looking into this.

@basdijkstra basdijkstra merged commit 06466ae into basdijkstra:main Nov 12, 2025
9 of 10 checks passed
@StefH StefH deleted the stef-generic-DeserializeTo branch November 12, 2025 16:08
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

Successfully merging this pull request may close these issues.

2 participants