Can I avoid using a very large 'switch' block to give access to 400 blocks of program code?
<p>I have written an application in C# which at present includes nearly 400 mathematical functions, each with its own integer ID. To access function code, my application currently feeds the function's ID to a huge 'switch' block which has one 'case' block per function: total, nearly 400 'case' blocks. This seems to work seamlessly and quite fast, but is there a more efficient way of matching code blocks to function identifiers?</p>
