Simplify if statement with multiple or's involving same variable?
<p>Let's say I have an if statement like this:</p>

<pre><code>if (a &gt; x || b &gt; x || c &gt; x || d &gt; x) {}
</code></pre>

<p>Assume it always involves the same repeated variable (x in this case) and the same operation, but the operation isn't the same between all uses.  For example, another if statement may use:</p>

<pre><code>if (x.Contains(a) || x.Contains(b) || x.Contains(c) || x.Contains(d)) {}
</code></pre>

<p>Is there a way to simplify these if statements in C# so we don't end up typing the same thing over and over?  I'd prefer not making an extra function to call for this instance.</p>
