title: LINQ, Lambda, C#, extension methods
body: <p>I've only been playing with linq to sql and lambda expressions for the first time for a few days and I want to do the following.</p>
  
  <p>I've got a string extension method that returns a double.  The extension method tests two strings and returns a similarity score.
  I have a list of string values from a column in a table using linq to sql and I want to use the extension method as a way of filtering out the only those strings whose similarity score is equal to or greater than the input string.</p>
  
  <p>I've got the below so far.  I don't seem to be able to test the value of the returned double. </p>
  
  <pre><code>List&lt;int&gt; ids = dc.ErrorIndexTolerances
                    .Where(n =&gt; n.Token.Distance(s) =&gt; .85)
                    .Select(n =&gt; n.ID)
                    .ToList();
  </code></pre>
  
  <p>The Distance Method is the extension method that returns a double.  Both Token and s are string. ID is an integer ID field within a table.</p>
  
  <p>Does anyone have any tips?</p>