-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Support parameter-less event methods in DataContractSerializer
(without a StreamingContext
parameter)
#109264
Comments
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis |
Related codesLines 1063 to 1142 in f1332ab
Lines 130 to 150 in f1332ab
Lines 174 to 198 in f1332ab
Lines 207 to 231 in f1332ab
Lines 398 to 418 in f1332ab
Lines 290 to 322 in f1332ab
Lines 232 to 258 in f1332ab
|
When I use event methods for the
DataContractSerializer
system, I still need aStreamingContext
parameter even though theBinaryFormatter
stuff is deprecated. The constructor and state property ofStreamingContext
is marked as obsolete.The
StreamingContext _
parameter is unused in the below code. I feel it is redundant.Parameter-less one like the code below makes me feel refreshed. Also, we do not need to type unused parameters. So, developing efficiency is more improved. In addition, maybe, passing (copying structure data) the parameter makes a program slow. Or maybe, the speed is the same because of checking parameters.
I agree that we should still support with
StreamingContext _
parameter for compatibility but I want a parameter-less option.The text was updated successfully, but these errors were encountered: