There is a code:

switch(System.Convert.ToInt32(BigInteger.Log10(value)) + 1) { case 1: case 2: case 3: return value.ToString(); break; case 4: case 5: case 6: return value.ToString(); break; } 

Breaks are highlighted as Unreachable code detected , but such values ​​are exactly possible. Is everything correct or is something really wrong with me?

    1 answer 1

    Break is highlighted because it is superfluous here (it will never be executed). Exiting the switch is done using return:
    return value.ToString();