Is there a way to shorten the condition if it always compares to the same thing?
<p>I have always found it annoying when I need to write a condition that compares the same item over and over again since I would have the type the item so many times:</p>

<pre><code>string x = textBox1.Text;

if (x == "apple" || x == "orange" || x == "banana" ...)
...
</code></pre>

<p>I want something like this (but of course this is not correct syntax):</p>

<pre><code>if (x == "apple" || "orange" || "banana" ...)
</code></pre>

<p>Is there a solution other than using an array of the strings?</p>
