public void EighthDelegateMethod(EighthDelegate methodF, EighthDelegate1 methodString1, EighthDelegate2 methodString2) { EighthDelegate eighthDelegate = methodF; EighthDelegate3 eighthDelegate3 = eighthDelegate.Invoke(new EighthDelegate1(methodString1), new EighthDelegate2(methodString2)); Console.WriteLine(eighthDelegate3.Invoke()); }
public static EighthDelegate3 MethodF(EighthDelegate1 eighthDelegate1, EighthDelegate2 eighthDelegate2) => () => eighthDelegate1.Invoke() + eighthDelegate2.Invoke();