title: Converting VB code snippet to C#
body: <p>I have to convert following Visual Basic code snippet to C#.<br>
  I used Telerik Converter.<br>
  But C# compiler shows error (type compatibility).<br>
  What will be the exact syntax for following code in C#?</p>
  
  <p><code>TotalMessages</code> is of type <code>int</code>.</p>
  
  <pre><code>Select Case TP_DCS
     Case ENUM_TP_DCS.UCS2
        TotalMessages = (TP_UD.Length / 4) \ 66 + ((TP_UD.Length / 4 Mod 66) = 0)
     Case ENUM_TP_DCS.DefaultAlphabet
       TotalMessages = (TP_UD.Length \ 266) - ((TP_UD.Length Mod 266) = 0)
  End Select
  </code></pre>