Eric,
>Strangely, there is no reference in this call to the property to the
>underlying string,
There doesn't have to be, the offset is the same regardless of the
string.
>and yet the MSIL produces clearly shows that the String
>reference is passed as the parameter to the get_OffsetToStringData method.
>The syntax though in the c++ code does not indicate this in any way.
Are you sure you're not misinterpreting the IL code?
get_OffsetToStringData takes no parameters.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Eric Twietmeyer - 11 Dec 2003 00:47 GMT
Matthias,
Thanks for the quick response. That of course makes sense, the offset would
be the same regardless of the String object instance. I was not
interpreting the MSIL correctly, as you surmised. Thanks for the
clarification.
-Eric
> Eric,
>
[quoted text clipped - 12 lines]
>
> Mattias