title: Can I make a "Contains" Method be case insensitive with C#?
body: <p>I'm using .NET 4.5 and C#. My code below works fine if the spelling is case sensitive. In other words if the file is spelled exactly like "SetupV8.exe". But I really need it to be case insensitive. I've played with it but cant find a way.</p>
  
  <pre><code>foreach (string file in directory.EnumerateFiles((AppDomain.CurrentDomain.BaseDirectory),  
           "*.exe", SearchOption.AllDirectories))
  {
     if (!file.Contains("SetupV8.exe")
     {    
        // Do something
     }
  }
  </code></pre>
  
  <p>Thanks</p>