Does anyone know of a way to find out how much memory an instance of an object is taking?
For example, if I have an instance of the following object:
The CLR Profiler, which is provide free by Microsoft does a very good job at this type of thing.
An introduction to the whole profiler can be downloaded here. Also the Patterns & Practices team put something together a while back detailing how to use the profiler.
It does a fairly reasonable job at showing you the different threads and objects created in those threads.
Hope this sheds some light. Happy profiling!