Alternative ways of finding if a string is an array
<p>I don't know if this question has been asked before. The way I know to do it am not convenient with it sometimes. </p>

<pre><code>string[] exts = { "png", "jpg", "gif" };
if (exts.Contains(Path.GetExtension(filename)))
{
}
</code></pre>

<p>I would like to change the positions of the variables</p>

<pre><code>if(Path.GetExtension(filename) is in exts)
{

}
</code></pre>

<p>Anyway to do it would be appreciated, LINQ, array function, etc</p>
