-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add missing nullable ref annotation to SourceSwitch #58026
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: @tommcdon, @krwq Issue DetailsThe
|
|
Is this the right target branch to target net6.0? |
|
A few things:
|
a7463b2 to
efee30f
Compare
The `Switch` base class that this value is passed to already is marked as allowing a null value here.
efee30f to
69df401
Compare
|
Thanks, @stephentoub. I've updated the ref source as well, and retargeted to main for now. |
|
Just looking at this more deeply, I'm not sure this is a valid change. For example, this fails with an argument null exception: var s = new SourceSwitch("myswitch", null);
var a = s.Attributes;I think this means this PR shouldn't be merged, and someone needs to look at the base annotations again. |
Right looks
@AArnott the base class annotation is wrong, sorry about that, i am gonna close this PR and will update the base annotation |
The
Switchbase class that this value is passed to already is marked as allowing a null value here.