Home All Groups Group Topic Archive Search About
Author
12 Apr 2006 10:12 AM
Robert Schneider
Why is this possible:

DirectCast(obj, IList(Of T)).GetEnumerator

IList does not have the GetEnumerator method according to the documentation
.. Is seems that I get a ICollection interface after the cast. But why?

Cheers,
Robert


--
E-Mail: r._sch_nei_d_er#_we_ingar_t_ner.c_om
(remove each '_' from the address and replace '#' with '@')

Author
12 Apr 2006 10:43 AM
José_Manuel_Agüero
Hello Robert,

IList(Of T) inherits IEnumerable, so it has GetEnumerator:
IList Generic Interface
http://msdn2.microsoft.com/en-us/library/5y536ey6(VS.80).aspx

Regards.


Show quoteHide quote
"Robert Schneider" <look.into@the.posting> escribió en el mensaje news:uKaFRnhXGHA.196@TK2MSFTNGP04.phx.gbl...
| Why is this possible:
|
| DirectCast(obj, IList(Of T)).GetEnumerator
|
| IList does not have the GetEnumerator method according to the documentation
| . Is seems that I get a ICollection interface after the cast. But why?
|
| Cheers,
| Robert
|
|
| --
| E-Mail: r._sch_nei_d_er#_we_ingar_t_ner.c_om
| (remove each '_' from the address and replace '#' with '@')
Author
12 Apr 2006 10:53 AM
Robert Schneider
Okay, that's easy to understand.
However, can you tell me, when are such members are listet under 'members'
and when not? I just have looked under
http://msdn2.microsoft.com/en-us/library/s16t9z9d(VS.80).aspx where it is
not listed. I have assumed that each member is listed in this section.

Cheers,
Robert

--
E-Mail: r._sch_nei_d_er#_we_ingar_t_ner.c_om
(remove each '_' from the address and replace '#' with '@')


"José Manuel Agüero" <chema012 en hotmail.com> schrieb im Newsbeitrag
news:O8mH33hXGHA.3724@TK2MSFTNGP02.phx.gbl...
Hello Robert,

IList(Of T) inherits IEnumerable, so it has GetEnumerator:
IList Generic Interface
http://msdn2.microsoft.com/en-us/library/5y536ey6(VS.80).aspx

Regards.


Show quoteHide quote
"Robert Schneider" <look.into@the.posting> escribió en el mensaje
news:uKaFRnhXGHA.196@TK2MSFTNGP04.phx.gbl...
| Why is this possible:
|
| DirectCast(obj, IList(Of T)).GetEnumerator
|
| IList does not have the GetEnumerator method according to the
documentation
| . Is seems that I get a ICollection interface after the cast. But why?
|
| Cheers,
| Robert
|
|
| --
| E-Mail: r._sch_nei_d_er#_we_ingar_t_ner.c_om
| (remove each '_' from the address and replace '#' with '@')
Author
17 Apr 2006 10:51 PM
José_Manuel_Agüero
Hi Robert,

Sorry for the delay, I've been on vacation visiting the Maginot Line.

Along the MSDN, the documentation for interfaces doesn't include inherited members, so you need to see also the list of members for the base interfaces.

Regards.


Show quoteHide quote
"Robert Schneider" <look.into@the.posting> escribió en el mensaje news:est2s9hXGHA.3448@TK2MSFTNGP03.phx.gbl...
| Okay, that's easy to understand.
| However, can you tell me, when are such members are listet under 'members'
| and when not? I just have looked under
| http://msdn2.microsoft.com/en-us/library/s16t9z9d(VS.80).aspx where it is
| not listed. I have assumed that each member is listed in this section.
|
| Cheers,
| Robert
|
| --
| E-Mail: r._sch_nei_d_er#_we_ingar_t_ner.c_om
| (remove each '_' from the address and replace '#' with '@')
|
|
| "José Manuel Agüero" <chema012 en hotmail.com> schrieb im Newsbeitrag
| news:O8mH33hXGHA.3724@TK2MSFTNGP02.phx.gbl...
| Hello Robert,
|
| IList(Of T) inherits IEnumerable, so it has GetEnumerator:
| IList Generic Interface
| http://msdn2.microsoft.com/en-us/library/5y536ey6(VS.80).aspx
|
| Regards.
|
|
| "Robert Schneider" <look.into@the.posting> escribió en el mensaje
| news:uKaFRnhXGHA.196@TK2MSFTNGP04.phx.gbl...
|| Why is this possible:
||
|| DirectCast(obj, IList(Of T)).GetEnumerator
||
|| IList does not have the GetEnumerator method according to the
| documentation
|| . Is seems that I get a ICollection interface after the cast. But why?
||
|| Cheers,
|| Robert
||
||
|| --
|| E-Mail: r._sch_nei_d_er#_we_ingar_t_ner.c_om
|| (remove each '_' from the address and replace '#' with '@')