Skip to content

Fix MessagePackFormatterAttribute for many built-in formatter types#1330

Merged
AArnott merged 3 commits intoMessagePack-CSharp:masterfrom
AArnott:fix1328
Nov 5, 2021
Merged

Fix MessagePackFormatterAttribute for many built-in formatter types#1330
AArnott merged 3 commits intoMessagePack-CSharp:masterfrom
AArnott:fix1328

Conversation

@AArnott
Copy link
Copy Markdown
Collaborator

@AArnott AArnott commented Sep 22, 2021

Add support for the formatter singleton pattern to MessagePackFormatterAttribute.

Without this, 90 of our 172 formatters break when used with this attribute.

Fixes #1328

@AArnott AArnott added this to the v2.3 milestone Sep 22, 2021
@AArnott AArnott requested a review from neuecc September 22, 2021 14:51
Copy link
Copy Markdown
Member

@neuecc neuecc left a comment

Choose a reason for hiding this comment

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

Thank you, it's very good.
(To be honest, I was thinking public constructor for everything, but it looks good)

@AArnott
Copy link
Copy Markdown
Collaborator Author

AArnott commented Nov 3, 2021

/azp run

1 similar comment
@AArnott
Copy link
Copy Markdown
Collaborator Author

AArnott commented Nov 5, 2021

/azp run

@AArnott AArnott force-pushed the fix1328 branch 3 times, most recently from 82683ff to e456001 Compare November 5, 2021 16:21
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.

Many built-in formatters fail when referenced from MessagePackFormatterAttribute

2 participants