Hi Viral,
Thanks for your time. Regarding the things that you have pointed out:
1. I don't have the benefit of using other class life cycle events as it is a class that I created my own, but I do get your point. If I were building a Win Form app, I would put this logic inside the Form_Load() event handler. Another thing is that I am certain that it will not throw any exception. As you can see, it is simply choosing how the internal component of type ISomeComponent would be instantiated.
2. I am not trying to solicit for approval, but do you think that a switch-case is considered bulky if placed inside a constructor?
No comments:
Post a Comment