How to reduce an if statement and pass multiple values to Contains?
<p>Lets say I want to loop trough all the files in a directory and if the file has an extension of an image format such as jpeg, bmp, or png, I want to copy the file to another directory.  Is there a way I can check for all image extensions without chaining <code>||</code> together?  Here is an example:</p>

<p>Instead of:</p>

<pre><code>if(file.Extension == ".jpg" || 
     file.Extension == ".jpeg" || 
     file.Extension == ".bmp" || 
     file.Extension == ".png")
            //Copy To Image directory
</code></pre>

<p>Can I do something like:</p>

<p><code>if (file.Extension.Contains(...)).</code></p>

<p>I know Contains exists, but it does not take an array of values (extensions in this case)</p>
