Created
November 4, 2022 07:09
-
-
Save jskeet/1ca3abb70639411d6b8bceeea86d3882 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
public void SetInfo(string code) | |
{ | |
eventCode = code switch | |
{ | |
"K" => eventCodes[0], | |
"L" => eventCodes[1], | |
"R" => eventCodes[2], | |
"Q" => eventCodes[3], | |
"N" => eventCodes[4], | |
_ => "I" | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment