>is there any kind of attribute, something like SizeOf in vb.net?
>
I have many objects, and I would like to get size of them in memory
Not really, no. What do you need the information for?
There's the Marshal.SizeOf method, but it returns the size a type
would take when marshaled to unmanaged memory (if at all possible),
which may be very different from the size an object takes up in
managed memory.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com
Please reply only to the newsgroup.