title: How to use a bool as an int?
body: <p>Say I have two buttons on a form.  If the first button gets hidden (visible = false) I would prefer the second button to move over.</p>
  
  <p>In VB I can make a concise assignment:</p>
  
  <pre><code>Button2.Left = 22 - (90 * Button1.Visible)
  </code></pre>
  
  <p>But this does not work in C#.  The only way I could figure out makes the code more wordy than VB (I didn't think that was possible) while making it less readable:</p>
  
  <pre><code>button2.Left = 22 - (90 * Convert.ToInt32(button1.Visible));
  </code></pre>
  
  <p>That handy shorcut (using a boolean in an assignment to avoid using an if) has existed for decades.  Did Micorsoft kill it in C# or is there a way to still use it without adding function calls or the like?</p>