title: Like operator in LINQ to Objects
body: <p>I'm trying to emulate the <code>LIKE</code> operator in LINQ to Objects. Here my code:</p>
  
  <pre><code>List&lt;string&gt; list = new List&lt;string&gt;();
  list.Add("line one");
  list.Add("line two");
  list.Add("line three");
  list.Add("line four");
  list.Add("line five");
  list.Add("line six");
  list.Add("line seven");
  list.Add("line eight");
  list.Add("line nine");
  list.Add("line ten");
  
  string pattern = "%ine%e";
  
  var res = from i in list
              where System.Data.Linq.SqlClient.SqlMethods.Like(i, pattern)
                select i;
  </code></pre>
  
  <p>It did not get me result because of <code>System.Data.Linq.SqlClient.SqlMethods.Like</code> is only for translation into SQL.</p>
  
  <p>Does anything similar to sql <code>LIKE</code> operator exists in LINQ to Objects world?</p>