Skip to content
Discussion options

You must be logged in to vote

This already works, just put parenthesis around the cese values

switch (a, b)
{
    case (0, 0):
        State = "0,0";
        break;
    case (0, 1):
        State = "0,1";
        break;
    case (1, 0):
        State = "1,0";
        break;
    case (1, 1):
        State = "1,1";
        break;
}

sharplab.io

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@HaloFour
Comment options

@DavidArno
Comment options

Answer selected by RonLight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants