title: How to filter Directory.EnumerateFiles with multiple criteria?
body: <p>I have the following code:</p>
  
  <pre><code>List&lt;string&gt; result = new List&lt;string&gt;();
  
  foreach (string file in Directory.EnumerateFiles(path,"*.*",  
        SearchOption.AllDirectories)
        .Where(s =&gt; s.EndsWith(".mp3") || s.EndsWith(".wma")))
         {
            result.Add(file);                 
         }
  </code></pre>
  
  <p>It works fine and does what I need. Except for one small thing. I would like to find a better way to filter on multiple extensions.  I would like to use a string array with filters such as this:</p>
  
  <pre><code>string[] extensions = { "*.mp3", "*.wma", "*.mp4", "*.wav" };
  </code></pre>
  
  <p>What is the most efficient way to do this using NET Framework 4.0/LINQ? Any suggestions?</p>
  
  <p>I'd appreciate any help being an occasional programmer :-)</p>