KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a class, and I want to inspect its fields and report eventually how many bytes each field takes. I assume all fields are of type Int32, byte, etc. How can I find out easily how many bytes does the field take? I need something like: Int32 a; // int a_size = a.GetSizeInBytes; // a_size should be 4
Tags (comma-separated)
Save Edits
Cancel