Skip to content
Discussion options

You must be logged in to vote

With your experience what should i prefer? The converter or the unions?

I suggest conforming to what unions supports, because fewer custom converters is usually better. And the built-in ones are far more fully featured and optimized than yours or what I'd expect most other hand-authored converters to support.

If you keep your converter though, here's a suggestion: Your Read method shouldn't discard the result from ReadArrayHeader. You should verify that it is exactly 2 before reading more tokens so that you catch bugs or data corruption sooner.

I also need to (de)serialize private/internal properties and fields. It is possible to enable this globaly? Because without this i have a lot w…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@AlleSchonWeg
Comment options

@AArnott
Comment options

Answer selected by AlleSchonWeg
@AlleSchonWeg
Comment options

@AArnott
Comment options

@AlleSchonWeg
Comment options

@AArnott
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants