title: How can do an invariant .Contains(myQuery) with Linq to Objects?
body: <p>I'm trying to filter a list of objects using linq. When i filter by a <code>Contains(someSearchQuery)</code> it's like it's being case sensitive .. meaning i miss some results.</p>
  
  <hr>
  
  <p>I have an <code>IList&lt;Foo&gt;</code>'s which has a number of properties, but one is <code>public string MyText { get; set; }</code></p>
  
  <p>Now, i'm trying to return a IQueryable of Foo's where the MyText property contain the <code>search query</code> - but as a  If this was a Sql statement, it would be either..</p>
  
  <p><code>WHERE MyText LIKE '%searchQuery%'</code> &lt;-- Works but inefficent</p>
  
  <p>or </p>
  
  <p><code>WHERE CONTAINS(MyText, 'searchQuery')</code> &lt;-- using FTS.</p>
  
  <p>I'm not sure how to do this, because when I do the following query it's like it's doing a case sensitive </p>
  
  <p><code>var query = from q in myFooList.AsQueryable().Where(x =&gt; x.MyText.Contains(searchQuery));</code></p>
  
  <p>Suggestions?</p>