Q:

Make a very long switch statement more readable

I have written a switch statement with over 11 cases like the following...
switch (x)
{
    case x = 0:
        x = x + 1;
    break;
    case x = 1:
        x = x + 2;
    break;
    // and so one...
}

The problem is I find by writing the code in this way it looks quite ugly and it's hard to maintain, is there's another way of formatting it to be more readable?
(NOTE: If the question is not on topic or has something wrong please, tell me what is it before downvoting/reporting it)

A:

Your current code does not compile, I think you meant:
switch (x)
{
    case 0:
        x = x + 1;
    break;
    case 1:
        x = x + 2;
    break;
}

This is just my own wild guess, but the rest of the switch statement probably looks like this:
case 2:
    x = x + 3;
break;
case 3:
    x = x + 4;
break;
case 4:
    x = x + 5;
break;

You can simplify the whole thing to this:
x += x + 1

If I guessed wrongly, you can still try to simplify this by using a dictionary. Here is an example:
// It could also be a Dictionary<int, Func<int, int>> or some other delegate
// if you want to compute the value from "x" or execute some random code
Dictionary<int, int> xDict = new Dictionary<int, int> {
    {0, <some value you want x to be>},
    {1, <some value you want x to be>},
    //...
}

x = xDict[x];

