Hi friends,
I want to know that how much memory will be taken a empty class and if we have the two member char, int inside a class then how much memory it will take please explain in brief?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jan 9, 2012, 6:43 PM
http://www.c-sharpcorner.com/Forums/Thread/155661/class-memory-in-C-Sharp.aspx
A class with no fields will still require a minimum of 1 byte (as a placeholder) plus overhead.