-1
我想要在由具有特定類型的兩個類實現的接口內具有泛型類型方法。這是接口:繼承自通用接口c#
public interface IInterface
{
IEnumerable<T> ExecStoredProc(string x, DateTime date,
int y, string statistics);
}
這兩個類:
public class Class1 : Iinterface
{
IEnumerable<Class1Type> ExecStoredProc(string x, DateTime date,
int y, string statistics);
}
public class Class2: Iinterface
{
IEnumerable<Class2Type> ExecStoredProc(string x, DateTime date,
int y, string statistics);
}
這可能嗎?
謝謝
爲什麼向下票呢? – user1647160