Created
August 6, 2023 13:44
-
-
Save nishanc/e168cae79fb8328837a333228963de59 to your computer and use it in GitHub Desktop.
This file contains 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 result = obj switch | |
{ | |
> 0 => "Positive", | |
< 0 => "Negative", | |
_ => "Zero" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment