Несколько мыслей по поводу того, что лучше: конструктор, или фабричный метод?
https://www.gustavwengel.dk/csharp-static-factory-vs-constructor
#FactoryMethod #Constructor
https://www.gustavwengel.dk/csharp-static-factory-vs-constructor
#FactoryMethod #Constructor
www.gustavwengel.dk
Static Factory Methods vs Constructors In C#
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...