Skip to content

Instantly share code, notes, and snippets.

@jskeet
Created November 4, 2022 07:09
Show Gist options
  • Save jskeet/1ca3abb70639411d6b8bceeea86d3882 to your computer and use it in GitHub Desktop.
Save jskeet/1ca3abb70639411d6b8bceeea86d3882 to your computer and use it in GitHub Desktop.
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