Skip to content

erossini/PatternFactoryMethod

Repository files navigation

Factory Method design pattern

The factory method pattern in C#/.NET is a creational pattern that uses factory methods to deal with the problem of creating objects without having to specify the exact class of the object that will be created. We can create objects by calling a factory method - either specified in an interface and implemented by child classes, or implemented in a base class and optionally overridden by derived classes - rather than by calling a constructor.

Factory Method diagram

For more details about this pattern, read the post Factory method in C# Core on PureSourceCode. For any questions, use our forum.

About

Factory method in C#/.NET Core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages