0
IRun<string, bool> runstub = c => One(1) == true;
exec(runstub);

ここで何が問題なのですか?「デリゲート型ではないため、ラムダ式を型 'IRun' に変換できません」という例外が発生します。

public static IEnumerable<IStub> exec<T, M>(T t) where T : IRun<T, M>
{
}

public static bool One(int one)
{
    one.Dump();
    return 1;
}
4

0 に答える 0