Created
June 22, 2019 13:34
-
-
Save azaharafernandezguizan/da0e5da0f8ca2df486e8fd87d90399cc 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
string? fullname = person switch | |
{ | |
null => null, | |
(null, string lastname) => $"Señor/a {lastname}", | |
(string firstname, string lastname)=> $"{firstname} {lastname}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment