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

Option to disable KeyValuePairSerializer #774

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

danstur
Copy link

@danstur danstur commented Mar 19, 2021

As discussed in #701 there's currently some rather unexpected behavior where tuple-like types can be serialized/deserialized by protobuf-net even without being annotated if they follow certain conventions.

This PR introduces a new flag AllowImplicitTuples (the naming could surely be improved) to disable this behavior. By default the behavior is not changed.

Copy link
Member

@mgravell mgravell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very nice, good work! The 0xdead made me laugh. Let me think on naming.

@danstur
Copy link
Author

danstur commented Apr 6, 2021

@mgravell Is there anything left for me to do here (add to release notes/change docs, some extra documentation somewhere?) or will this be included in the next release when there are enough issues to warrant you spending your spare time to create one?

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.

None yet

2 participants