Skip to content
loading...

re: Universally quantified types in C# VIEW POST

TOP OF THREAD FULL DISCUSSION
re: You can't pass a generic function as a parameter without having your own function be generic. Therefore you need to encapsulate it. Like in an inte...

You got it. That interface is exactly what I'd suggest. You're still passing in the function, just with one level of indirection. It's a bit more verbose, but not too bad, I think. Nice work!

code of conduct - report abuse