3 ms·Even in C# you can do it without interfaces and constructor injection. You just pass a Func<X, Y>.by DeathArrow 4y agoEven in C# you can do it without interfaces and constructor injection. You just pass a Func<X, Y>.