-
Notifications
You must be signed in to change notification settings - Fork 5.1k
STJ: Skip usage of indexer for KeyedCollection #97734
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
Conversation
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis |
|
||
MyKeyedCollection mkc = new MyKeyedCollection() { 1, 2, 3 }; | ||
Assert.Equal("[1,2,3]", await Serializer.SerializeWrapper(mkc)); | ||
Assert.Equal("[1,2,3]", await Serializer.SerializeWrapper<KeyedCollection<int, int>>(mkc)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about deserialization tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deserialization test added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #97617