CSharp · Console
using System;
public class Program
{
private Action Method1() {
return () => MyFunc(new Type1(), null);
}
private void Method2()
{
var funcWithAllParameters = Method1();
funcWithAllParameters.Invoke();
}
private void MyFunc(Type1 p1, Type2 p2)
{
//
}
}
class Type1
{}
class Type2
{}