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.
For more details about this pattern, read the post Factory method in C# Core on PureSourceCode. For any questions, use our forum.