Wednesday, 17. Feb 2021
There is a follow-up post: Advanced weapons of mass construction Last time I wrote about how to use interfaces to their full potential, but I never really mentioned factories beyond the fact, that we probably need them. This is going to be another chapter to the previous post with a more in-depth look into the matter of encapsulated object creation in C#. Again I will start with what I usually find in a client’s project, and then I will move in small steps towards a progressively more mature implementation. Every step will include a bit of code to demonstrate the changes that were made. Making up a good example to demonstrate factories is surprisingly hard. There is a multitude of possible scenarios available, but most are too complex… Continue Reading…