Skip to content
loading...

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

TOP OF THREAD FULL DISCUSSION
re: I don't get why you need this factory anyway. Why not just calling the constructor directly ?
 

Sometimes, objects become too complex to be handled only by the constructor.

Sometimes you'll also want to apply domain rules in the creation of an object.

code of conduct - report abuse