Null-conditional delegate assignment #9198
-
As the title specifies i would like to propose null-conditional delegate assignment. Examples Now: if(item is not null)
item.PropertyChanged += ... Proposal: item?.PropertyChanged += ... That's it. Small feature that is not allowed today but would make code a little cleaner. |
Beta Was this translation helpful? Give feedback.
Answered by
CyrusNajmabadi
Mar 4, 2025
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CyrusNajmabadi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dupe of #8677. Can be discussed here #8676