C
C#16mo ago
Kroks

❔ Structure of heap-allocated Object in C# (Method-Table especially).

Asking for the structure of a .NET object in memory. I know that it starts with the address of the method table, after that you have all the field vlaues of the object. However I would like to know more about the method table especially. The information I found online seem to be incomplete or contradict each other.
5 Replies
Monsieur Wholesome
I am personally not well versed in .NET internals. All I know is that the object management on the heap is treated as a black box Have you seen the official CIL ECMA tho? https://www.ecma-international.org/wp-content/uploads/ECMA-335_6th_edition_june_2012.pdf
Kroks
Kroks16mo ago
I don't think this one talks much about the memory layout of an object but more about the IL and things around that @OneWholesomeDev do you know someone who has more experience?
Monsieur Wholesome
You can hop over to #allow-unsafe-blocks That's your best bet
Kroks
Kroks16mo ago
thanks
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.