Generic + Non-Generic of GetService thread moved:

Topics: CAB & Smart Client Software Factory
Jul 11, 2005 at 6:21 AM
originally posted by: eilert

This is a continuation of the Generic and Non-Generic thread at:

The thread asked why the generic GetService method does call the non generic one.

I proposed that when both the generic and non-generic members need to be implemented, one should rather call a common private method from both members to avoid casting. Please examine whether this is possible in all instances in the CAB.

I also proposed that interfaces related to the GetService (IComponent, ISite, IContainer, IServiceContainer, IServiceProvider) and implemented, as well as related, classes be made generic. Please examine this also.

I also made a suggestion at the .Net Feedback Centre that this should directly be implemented in the .Net ComponentModel.
You can vote for it, if you agree with me, at: