Community

Static Factory Methods vs Constructors In C#

(Gustav) Recently while pair programming with a colleague, we got into discussing the best way to initialize new objects in C#. I’ve always just implemented constructors and left it at that, while he tended to favour static factory methods.