Yanick,
It is possible that the interal representation of a string is BSTR (on
Microsoft platforms), however, I doubt it. This would require a fixed slot
in memory, something that the CLR generally doesn't like. My guess is that
it stores the array of characters which the object accesses.
Arrays are probably not safearrays either. Generally speaking, I do not
think that .NET uses COM types to represent basic structures such as
strings, or arrays.
As for dates, it seems that the internal represenation of the date is in
ticks (milliseconds).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Zoury" <yanick_lefebvre at hotmail dot com> wrote in message
news:OG****************@TK2MSFTNGP10.phx.gbl...
Hi! :O)
I'de like to know how date types are hold in memory. Is there any
documentation on this?
for example, is System.String a BSTR? or int[] a SAFEARRAY?
thanks a lot!
--
Best Regards
Yanick Lefebvre
Please posts answers to the group so all can benefit