Investigation of CLR via SOS
问题 Currently I am digging deeper into CLR and try to find proper size of my managed objects. I have two simple types: XClass class XClass { public XStruct StructField = new XStruct(); public int IntField; public double DoubleField; } and XStruct struct XStruct { public short ShortField; public long LongField; } Also cosider code snippet where this objects are involved: static unsafe void Main(string[] args) { double angle = 0.34; { double anotherDouble = 1.49; XStruct xStruct = new XStruct();