loading...

re: How to avoid the Factory pattern in C# VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thank you for the detailed response. Examples are definitely helpful! :) I think what you’ve done is fine since it’s basically a functional approa...
 

Func are nameless. Making arguably "harder" to understand when you find it in the code. Creating a delegate allows you to name it and make easier to "inject" it using DI. And having a name also expresses what you intend to do with that function.

code of conduct - report abuse