Size of an object at runtime
<p>How do you get the size(in bytes) of an object or data structure at runtime, I know there profiler tools that do this I am only interested in doing this at runtime.</p>

<p>Data Structure is <code>List&lt;object&gt;</code> </p>

<p>I am  trying to find out how much space the entire collection is taking and how much space an individual object is taking, not that there should, in theory, be a difference between the two. </p>
