Instantiation generates 'activity' in the stack as well as heap. But do the actual class definitions (before) instantiation, technically reside in the stack or heap, or just part of a separate location in RAM?
thanks Gents,
Spatio
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jun 5, 2014, 12:40 PM EDT
Anupam SinghRank #643 · 3.7K reputationPosted Jun 5, 2014, 9:44 PM EDT
Nicely described !. You should write book on .net :), why don't you try so?
I never put any comment after your reply, because its always perfect.
I have a query here .How .NET framework process unmanaged code ? It should be quite different then this process .
VulpesRank #55 · 29.2K reputationPosted Jun 6, 2014, 4:03 PM EDT
There are in any case some really good ones already including Jeffrey Richter's books which are where I learnt most of what I know about the internals of .NET in the first place.
Yes, the process I've just described only applies to managed types and objects.
Since the CLR is written in C++ it can access unmanaged code natively though, to assist with this, it does have built-in mechanisms to convert .NET types to and from unmanaged types where they're not already compatible with each other.
Anupam SinghRank #643 · 3.7K reputationPosted Jun 6, 2014, 7:10 PM EDT
naveen awasthi16 reputationPosted Oct 8, 2014, 4:10 AM EDT