I need to check how much memory is allocated in the heap. Is there a way to get this value programmatically with C#?
I know about the System.Runtime.InteropSer
System.Runtime.InteropSer
Does GC.GetTotalMemory do everything you need?
(Note that SizeOf only tells you the marshalled size, too - not necessarily the size in memory.)
SizeOf