It's object
But c'mon. I know I can ctype that thing into mshtml.IHTMLDOMChildrenCollection
Printable View
It's object
But c'mon. I know I can ctype that thing into mshtml.IHTMLDOMChildrenCollection
mshtml.DOMChildrenCollectionClass
Thanks. How do youi know that Penagate?
A little bit of experience and a little bit of Google
http://www.dotnettech.net/BCL/VB.NET...ass/Class.aspx
The thing is if we press F2, the visual basic says that the type is object.
Also http://www.dotnettech.net/BCL/VB.NET...ass/Class.aspx only says that there is a type called mshtml.DOMChildrenCollectionClass
It doesn't say that mshtml.DOMChildrenCollectionClass is the type of children.
The intellisense says 'object' because it is late-bound. In theory it could be anything. In practice you know that it will be an object conforming to IHTMLDOMChildrenCollection and so you cast it as such.
If you step through and look at the object in the IDE at run time you might get the actual type name. (I forget exactly how the VS IDE works.)
What's the reason behind this, anyway? Curiosity, or something else?