title: calling method in template in C#
body: <p>I tried using method (foo2) from the template method (foo1) and compiler said that he doesn't know this method (foo2) which belongs to that class (T). </p>
  
  <p>What is the right syntax, which compiler accept it?</p>
  
  <pre><code>private void foo1&lt;T&gt;(T instance)
  {
      instance.foo2();
  }
  </code></pre>