title: C# if statement that check test condition values IN (like in t-sql does)
body: <p>I was wondering if it is possible to use a keyword like "IN" to test a condition in an if statement in C# ?</p>
  
  <p>original code :</p>
  
  <pre><code>if (fAuth.ShowDialog(this.DialogParent) == DialogResult.Cancel 
  || fAuth.ShowDialog(this.DialogParent) == DialogResult.Abort 
  || fAuth.ShowDialog(this.DialogParent) == DialogResult.None
  || fAuth.ShowDialog(this.DialogParent) == DialogResult.No)
  return;
  </code></pre>
  
  <p>I'm asking how to do something like this:</p>
  
  <pre><code>if (fAuth.ShowDialog(this.DialogParent) IN (DialogResult.Cancel,DialogResult.Abort,DialogResult.None,DialogResult.No)
  return; 
  </code></pre>
  
  <p>What would be the correct syntax ?</p>