C#: instantiating classes from XML

前端 未结 8 976
情歌与酒
情歌与酒 2021-02-04 09:05

What I have is a collection of classes that all implement the same interface but can be pretty wildly different under the hood. I want to have a config file control which of the

8条回答
  •  感动是毒
    2021-02-04 09:43

    I recently did something very similar, I used an abstract factory. In fact, you can see the basic concept here:

    Abstract Factory Design Pattern

提交回复
热议问题