|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Casting questionWhy 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 '@') 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 '@') 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 IList(Of T) inherits IEnumerable, so it has GetEnumerator:news:O8mH33hXGHA.3724@TK2MSFTNGP02.phx.gbl... Hello Robert, 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 '@') 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 '@')
VS2005 IDE Status bar question
ASP.NET page, hiding certain controls when printing Tree view node selection How to draw graphics on a bitmap ? property access from the form Tool strip size Add User settings to My.Settings at Runtime Typing in a ComboBox Access Database Access within code Ending the appliation reliably |
|||||||||||||||||||||||