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).
What is the right syntax, which compiler accept it?
private void foo1<T>(T instance)
{
instance.foo2();
}