R
Rune Andersen
Hi....
I'm working on a cache controller and needs to know the current size of the
cache object, but how do I get that ?
I've got an ArrayList populated with structs and now I want to know the
current memory usage of the ArrayList at runtime.
I've tried using
System.Runtime.InteropServices.Marshal.SizeOf( object structure );
but it seems like it's only working on types like int, long, double etc.
Is there any method I can use that gives me the size of memory used by a
specified object ?
/Rune
I'm working on a cache controller and needs to know the current size of the
cache object, but how do I get that ?
I've got an ArrayList populated with structs and now I want to know the
current memory usage of the ArrayList at runtime.
I've tried using
System.Runtime.InteropServices.Marshal.SizeOf( object structure );
but it seems like it's only working on types like int, long, double etc.
Is there any method I can use that gives me the size of memory used by a
specified object ?
/Rune