有“通用接口”和“非通用接口中的通用方法”两种区别,它们之间有没有优劣之分呢?
interface IMyInterface
{
void MyMethod<T>(T param) where T : class;
}
并且
interface IMyInterface<T> where T : class
{
void MyMethod(T param)
}