By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,203 Members | 1,638 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,203 IT Pros & Developers. It's quick & easy.

Use of Scripting.Dictionary in C#

P: n/a
Hi All,
I have a VB COM component that has an object of type
Scripting.Dictionary. Each element of this again has
Scripting.Dictionary type members.
I need to access this in C#, and am not able to do so.
Could anyone provide me with source code for the same?

Thanks in Advance.
Regards,
--Jaffar

Jul 27 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Did u try this
http://samples.gotdotnet.com/quickst..._NET2COM.aspx?

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


"ja*********@gmail.com" wrote:
Hi All,
I have a VB COM component that has an object of type
Scripting.Dictionary. Each element of this again has
Scripting.Dictionary type members.
I need to access this in C#, and am not able to do so.
Could anyone provide me with source code for the same?

Thanks in Advance.
Regards,
--Jaffar

Jul 27 '06 #2

P: n/a
I have successfully put a reference to the DLL, that's not a problem.
The thing is that the object I'm trying to access has a
Scripting.Dictionary, where each member is also a Scripting.Dictionary,
and I'm not getting what type to cast the inner member; an object array
cast is failing.

Michael Nemtsev wrote:
Did u try this
http://samples.gotdotnet.com/quickst..._NET2COM.aspx?

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


"ja*********@gmail.com" wrote:
Hi All,
I have a VB COM component that has an object of type
Scripting.Dictionary. Each element of this again has
Scripting.Dictionary type members.
I need to access this in C#, and am not able to do so.
Could anyone provide me with source code for the same?

Thanks in Advance.
Regards,
--Jaffar
Jul 27 '06 #3

P: n/a
<ja*********@gmail.comwrote:
I have successfully put a reference to the DLL, that's not a problem.
The thing is that the object I'm trying to access has a
Scripting.Dictionary, where each member is also a Scripting.Dictionary,
and I'm not getting what type to cast the inner member; an object array
cast is failing.
Well, what happens if you call GetType() on the item which you can't
cast? What type is returned?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jul 27 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.