title: Ambiguous call on extension method
body: <p>I have an extension method on my project that has been working fine: </p>
  
  <pre><code>public static class Extensions
  {
      public static bool IsBetween&lt;T&gt;(this T value, T low, T high) 
                                                           where T : IComparable&lt;T&gt;
      {
          return value.CompareTo(low) &gt;= 0 &amp;&amp; value.CompareTo(high) &lt;= 0;
      }
  }
  </code></pre>
  
  <p>Now when I try to build my project I get this error:</p>
  
  <blockquote>
    <p>Error 1699    The call is ambiguous between the following methods or
    properties:
    'BillingFormsApplication.Extensions.IsBetween(double, double,
    double)' and
    'BillingFormsApplication.Extensions.IsBetween(double, double,
    double)'</p>
  </blockquote>
  
  <p>There is only one <code>IsBetween</code> method in the <code>Extensions</code> file... AND only one <code>IsBetween</code> method in the entire solution.</p>
  
  <p>I tried to clean and rebuild the solution.  Still getting the error.  </p>
  
  <p>I could remove the extension and keep going, but it has been quite handy in the past.  </p>
  
  <p><strong>Added for Frederic:</strong></p>
  
  <pre><code>                    if (percentCash.IsBetween(0, 99))
                  {
  </code></pre>
  
  <p>I wonder if I cast those numbers to Double if that will fix it.  I'll try that in a minute.  Like:</p>
  
  <pre><code>if (percentCash.IsBetween((double)0, (double)99))
  </code></pre>