Switch Expression in C# #143
Replies: 1 comment 3 replies
-
static string Pattern(string myString)
{
return myString[0] switch
{
'A' => "first",
};
} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
christiannagel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
How can I fix this error?
Beta Was this translation helpful? Give feedback.
All reactions