|
-
Mar 23rd, 2011, 11:48 PM
#1
Thread Starter
Fanatic Member
What is the True Type of ihtmldomnode.childNodes
It's object
But c'mon. I know I can ctype that thing into mshtml.IHTMLDOMChildrenCollection
-
Mar 24th, 2011, 01:27 AM
#2
Re: What is the True Type of ihtmldomnode.childNodes
mshtml.DOMChildrenCollectionClass
-
Mar 24th, 2011, 06:22 AM
#3
Thread Starter
Fanatic Member
Re: What is the True Type of ihtmldomnode.childNodes
Thanks. How do youi know that Penagate?
-
Mar 24th, 2011, 06:13 PM
#4
Re: What is the True Type of ihtmldomnode.childNodes
A little bit of experience and a little bit of Google
http://www.dotnettech.net/BCL/VB.NET...ass/Class.aspx
-
Mar 31st, 2011, 05:08 AM
#5
Thread Starter
Fanatic Member
Re: What is the True Type of ihtmldomnode.childNodes
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.
-
Mar 31st, 2011, 07:27 AM
#6
Re: What is the True Type of ihtmldomnode.childNodes
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?
-
Mar 31st, 2011, 11:38 AM
#7
Thread Starter
Fanatic Member
Re: What is the True Type of ihtmldomnode.childNodes
 Originally Posted by penagate
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?
I was like you guessing and guessing and I am tired of guessing.
The object is actually system_com or something. Not ihtmldomchildrencollection. The latter is an interface.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|