S
Sgt. Sausage
How can I get the amount of memory an arbitrary
instance is consuming? The typeof() operator is
not good for what I'm looking for -- I need to
pass in any arbitrary instance of any arbitrary
class. It needs to be recursive -- if that's the
word. It needs to follow the references to any
child objects and retrieve their size too, recursing
to any child objects of the child objects, etc.
Can someone suggest a method of doing this?
Thanks.
instance is consuming? The typeof() operator is
not good for what I'm looking for -- I need to
pass in any arbitrary instance of any arbitrary
class. It needs to be recursive -- if that's the
word. It needs to follow the references to any
child objects and retrieve their size too, recursing
to any child objects of the child objects, etc.
Can someone suggest a method of doing this?
Thanks.