-1
特定の型を持つ2つのクラスによって実装されるインターフェイス内にジェネリック型メソッドが必要です。ジェネリックインターフェイスから継承する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