"RicercatoreSbadato" <em***********@yahoo.it> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
ok, from MSDN: "The size returned is the actually the size of the
unmanaged type. The unmanaged and managed sizes of an object can
differ."
But how can I take the real size of a TYPE ?
Why would you want to know?
You can never access the managed type as a piece of memory so it is never
useful to know its size.
The only half-plausible reason is that you want to assess the actual memory
requirements of your class but even then this is impossible for any
reasonably complicated class because of stuff like overheads in library
hashtables which might vary with the data.