Extension Methods and Null Propagation #5902
Answered
by
HaloFour
TonyValenti
asked this question in
Q&A
-
Is there a way to do this:
Without needing to use the grouping parenthesis? |
Beta Was this translation helpful? Give feedback.
Answered by
HaloFour
Mar 9, 2022
Replies: 2 comments
-
The grouping parenthesis are not needed. Can you post a concreate sample? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You mean you want the extension method to always be called even if the preceding expression results in |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TonyValenti
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You mean you want the extension method to always be called even if the preceding expression results in
null
? No, the null propagation operator always shortcircuits the remainder of the expression.