Generic + Non-Generic of GetService thread moved:

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

This is a continuation of the Generic and Non-Generic thread at:
http://practices.gotdotnet.com/messageboard/thread.aspx?id=22f72167-af95-44ce-a6ca-f2eafbf2653c&mbid=c09776ca-f94c-4c83-a80c-75d381cabdd6&threadid=eaef085e-18a6-4674-a027-0e62560526e6

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: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=5270791d-5d57-4e32-8d76-916f58f241f3