The IList members are implemented explicitly ("explicit interface
implementations" in msdn) -- so they will only be available when treating the
List<T> as a non-generic IList:
// disclaimer: untested code
System.Collections.IList list = new System.Collections.Generic.List<T>();
list.Add( new Object() );
[quoted text, click to view] "Rene" wrote:
> According to the documentation, the List<T> type explicitly implements the
> non generic IList interface.
>
> The problem is that no matter how hard I look, I am not able to find this
> implemetion on the List<T> type. Could some one tell me where can I find the
> IList implementation?
>
> Please note that the plase where I am looking for this implementation is
> from the Visula Studio metadata information page. The page that shows up
> when you right-click on the "List<T>" word and then click on the "Go To
> Definition" menu item.
>
> This has to be something very stupid of my part, what am I missing?
>
>
According to the documentation, the List<T> type explicitly implements the
non generic IList interface.
The problem is that no matter how hard I look, I am not able to find this
implemetion on the List<T> type. Could some one tell me where can I find the
IList implementation?
Please note that the plase where I am looking for this implementation is
from the Visula Studio metadata information page. The page that shows up
when you right-click on the "List<T>" word and then click on the "Go To
Definition" menu item.
This has to be something very stupid of my part, what am I missing?
I already knew that, my question was: Where is that implementation on the
List<T> metadata? I don't see it. I should be able to see the explicit
implementation such as:
int IList.Add(object value);
take a second to re-read my original post a little more carefully and you
will see what I mean.
Thanks.
[quoted text, click to view] "KH" <KH@discussions.microsoft.com> wrote in message
news:122FB445-5B2D-489D-83A1-FDF92DE3D75C@microsoft.com...
> The IList members are implemented explicitly ("explicit interface
> implementations" in msdn) -- so they will only be available when treating
> the
> List<T> as a non-generic IList:
>
> // disclaimer: untested code
>
> System.Collections.IList list = new System.Collections.Generic.List<T>();
> list.Add( new Object() );
>
>
> "Rene" wrote:
>
>> According to the documentation, the List<T> type explicitly implements
>> the
>> non generic IList interface.
>>
>> The problem is that no matter how hard I look, I am not able to find this
>> implemetion on the List<T> type. Could some one tell me where can I find
>> the
>> IList implementation?
>>
>> Please note that the plase where I am looking for this implementation is
>> from the Visula Studio metadata information page. The page that shows up
>> when you right-click on the "List<T>" word and then click on the "Go To
>> Definition" menu item.
>>
>> This has to be something very stupid of my part, what am I missing?
>>
>>
>>