title: calling an overloaded method in generic method
body: <pre><code>class Test
  {
      public BinaryWriter Content { get; private set; }
      public Test Write&lt;T&gt; (T data)
      {
          Content.Write(data);
          return this;
      }
  }
  </code></pre>
  
  <p>it won't compile.</p>
  
  <pre><code>1. The best overloaded method match for 'System.IO.BinaryWriter.Write(bool)' has some invalid arguments
  2. Argument 1: cannot convert from 'T' to 'bool'
  </code></pre>
  
  <p>it seems like Test.Write is always trying to call BinaryWriter.Write(bool). any suggestions?</p>