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

Serialization attributes with StreamingContext cause RCS1163 messages #1199

Closed
murrty opened this issue Sep 4, 2023 · 1 comment · Fixed by #1280
Closed

Serialization attributes with StreamingContext cause RCS1163 messages #1199

murrty opened this issue Sep 4, 2023 · 1 comment · Fixed by #1280

Comments

@murrty
Copy link

murrty commented Sep 4, 2023

Product and Version Used:
Roslynator 4.5.0, Visual Studio 17.7.3, tested on NET 7 and Framework 4.7.2

Steps to Reproduce:
Create a method with any of the OnSerialized/OnDeserialized/OnSeriailizing/OnDeserializing attributes that require StreamingContext as a parameter.

Actual Behavior:
Gives the unused parameter message.

Expected Behavior:
Should not give the unused parameter message because the parameter is required.

This seems to have occurred before (#276, #281) but they seem to be just slightly different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants