C#: Memory usage of an object

c++memorymemory-management

Is there a way to find how much memory is used for a particular object? For example a List. Taking everything into account, like string interning and whatever is done by compiler/runtime environment/whatever.

Best Solution

ANTS Memory Profiler profiles the memory consumption of .NET code. I've had great results with it in the past.