You can combine function switching with an IoC container to load various implementations of your components. For example, toggle "A" loads the implementation of "X", and the switch "B" loads the implementation of "Y". This approach allows you to support parallel implementations and include legacy and new features based on a single switch.
source share