I\'m looking for a way to get the size of an instance of a reference type. sizeof is only for value types. Is this possible?
Beware that Marshal.SizeOf is for unsafe code...
I don't think it's possible for managed code though, maybe you can explain your problem, there may be another way to solve it