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

Allow serializers to have multiple [Serializer(...)] attributes #2611

Merged
merged 2 commits into from
Jan 25, 2017

Conversation

ReubenBond
Copy link
Member

@ReubenBond ReubenBond commented Jan 19, 2017

Part of the work to obviate SerializationManager.Register methods. See #2610

Simple fix to allow a single static serializer class to support multiple types, as can be seen with the JSON serializer below.

[RegisterSerializer] is still available and this PR adds a test to ensure it's still being called, but it's marked as obsolete in order to set expectations.

@ReubenBond ReubenBond changed the title Allow serializers to have multiple [Serializer(typeof(TargetType))] attrs Allow serializers to have multiple [Serializer(...)] attributes Jan 19, 2017
@ReubenBond ReubenBond force-pushed the multiple-serializer-attrs branch 4 times, most recently from 9d5462e to ceaabe9 Compare January 19, 2017 02:43
@ReubenBond
Copy link
Member Author

@dotnet-bot test this please

@sergeybykov sergeybykov added this to the 1.4.0 milestone Jan 23, 2017
@ReubenBond ReubenBond force-pushed the multiple-serializer-attrs branch from ceaabe9 to 6c4fc48 Compare January 24, 2017 21:24
@ReubenBond
Copy link
Member Author

@dotnet-bot test this please

@sergeybykov sergeybykov merged commit d983072 into dotnet:master Jan 25, 2017
@ReubenBond ReubenBond deleted the multiple-serializer-attrs branch January 25, 2017 22:59
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants