Last active
January 20, 2019 15:58
-
-
Save controlflow/3f74c5b8ba8d40ba420856209296fc21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var condition = expression.ConditionOperand; | |
if (condition == null) return; | |
var thenResult = expression.ThenResult; | |
if (thenResult == null) return; | |
var elseResult = expression.ElseResult; | |
if (elseResult == null) return; | |
// ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (condition is { | |
ConditionOperand is { } condition, | |
ThenResult is { } thenResult, | |
ElseResult is { } elseResult | |
}) | |
{ | |
// ... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (condition is ({ } condition, { } thenResult, { } elseResult)) | |
{ | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment