title: Is "else if" faster than "switch() case"?
body: <p>I'm an ex Pascal guy, currently learning C#.
  My question is the following:</p>
  
  <p>Is the code below faster than making a switch?</p>
  
  <pre><code>int a = 5;
  
  if (a == 1)
  {
      ....
  }
  else if(a == 2)
  {
      ....
  }
  else if(a == 3)
  {
      ....
  }
  else if(a == 4)
  {
      ....
  }
  else
      ....
  </code></pre>
  
  <p>And the switch:</p>
  
  <pre><code>int a = 5;
  
  switch(a)
  {
      case 1:
          ...
          break;
  
      case 2:
          ...
          break;
  
      case 3:
          ...
          break;
  
      case 4:
          ...
          break;
  
      default:
          ...
          break;
  
  
  }
  </code></pre>
  
  <p>Which one is faster?</p>
  
  <p>I'm asking, because my program has a similar structure (many, many "else if" statements).
  Should I turn them into switches?</p>