Skip to content

Unusual if statement in MaterialDesign codebase - would appreciate help #3339

Closed Answered by Keboo
sabuncumurat asked this question in Q&A
Discussion options

You must be logged in to vote

The name for this is "property pattern matching". It is both performing a null check, but if the value of HintProxy is not null, it will assign the non-null value to hintProxy and the expression returns true.

You can read more about it here: https://essentialcsharp.com/pattern-matching#property-patterns-c-8-0-10-0

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sabuncumurat
Comment options

Answer selected by sabuncumurat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Old items with this tag will be automatically closed.
2 participants