title: How to use conditional statement IF ELSE on property attribute
body: <p>I want to show <code>MyProperty1</code> or <code>MyProperty2</code> based on <strong>MyPropertySelected</strong>. How to use a conditional statement <code>if</code> or <code>else</code> based on <strong>MyPropertySelected</strong>? Thanks.</p>
  
  <pre><code>// [Browsable(true)
  // ????? conditional statement IF ELSE in here..
  // IF (MyPropertySelected) MyProperty1 will be show ELSE MyProperty2 will be show.
  public bool MyPropertySelected { get; set; }
  
  // [Browsable(true) or [Browsable(false) depending on MyPropertySelected condition.
  public int MyProperty1 { get; set; }
  
  // [Browsable(true) or [Browsable(false) depending on MyPropertySelected condition.
  public int MyProperty2 { get; set; }
  </code></pre>