title: in switch function how get case value in every case block
body: <p>I’m using switch in my code and i wanna get case value in every case block. how can i get it?</p>
  
  <pre><code>switch(value)
  {
      case Value1:
          function1(Value1); 
          // i want something like this : function1(getCaseValue)      
      break;
      case Value2:
          function1(Value2); 
      break;
      case Value3:
          function2(Value3);       
      break;
  }
  </code></pre>