Questions tagged [abstract-factory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
2 answers

Is there a Factory Pattern distinct from Abstract Factory and Factory Method?

During a recent phone screen I was asked to describe the "Factory Pattern". I asked if the screener meant "Factory Method" or "Abstract Factory". He said, "No, just the Factory Pattern". I don't know ...
kojiro's user avatar
  • 2,105
2 votes
3 answers

Abstract Factory configuration differences

is a simple abstract factory. I know abstract factory is for selecting a product family. But my question is, can we still use this pattern if ConcreteFactory1 needs to createProductC() but ...
Pareidolia's user avatar
1 vote
1 answer

C# - How can I ensure a member is invoked without needing to call it and rely on the { get; }

I'm using reflection as a way of implementing a factory pattern: Type type = GetProviderType(vendor); ConstructorInfo constructorInfo = type.GetConstructor(new Type[] { typeof(...
Chris Halcrow's user avatar