Hashtable marshaling

  • Thread starter Alexander Vasilevsky
  • Start date
J

Jeroen Mostert

Alexander said:
Is there a way to transfer C# Hashtable object to unmanage part of the
application in C++?
The only data type they have in common is the array. You could marshal .Keys
and .Values separately. Modifying the hashtable from unmanaged code is right
out. (Theoretically you could implement a custom marshaler, but this is a
lot of hard work and probably not worth it.)

You could do it much more easily from managed C++, of course, since that
would be able to use the hashtable type directly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top