sizeof() equivalent for reference types?

前端 未结 6 1284
醉酒成梦
醉酒成梦 2020-11-30 12:20

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?

6条回答
  •  一整个雨季
    2020-11-30 13:08

    Please refer my answer in the below link.

    It is possible via .sos.dll debugger extension

    Find out the size of a .net object

提交回复
热议问题