title: Equivalent of Oracle DECODE function in C#
body: <p>DECODE built in function in Oracle</p>
  
  <pre><code>decode( expression , search , result [, search , result]... [, default] )
  </code></pre>
  
  <p><a href="http://www.techonthenet.com/oracle/functions/decode.php" rel="nofollow">http://www.techonthenet.com/oracle/functions/decode.php</a></p>
  
  <p>Want the similar functionality in C# language. Any built in method ? </p>
  
  <p>I know i can use if else if structure or switch but then i need to do it dynamically.Please share some logical steps for creating one if not there.</p>
  
  <p>Thank you for your precious time.</p>