Is any difference between :
public void Method1(class1 c, T obj) where T:Imyinterface
And
public void Method2(clas
Using a generic method gives you various possibilities with slight signature changes:
public void Method1(class1 c, T obj) where T:Imyinterface, new() :public T Method1(class1 c, T obj) where T:Imyinterface :public void Method1(class1 c, ref T obj) where T:Imyinterface :obj's reference. Same applies to out.These are impossible with the non generic version.