5 ms·
If you only want the size of the object itself -- not the things it references -- then you don't actually need to instantiate them to know this. You can reflec
by daeken 16y ago
If you only want the size of the object itself -- not the things it references -- then you don't actually need to instantiate them to know this. You can reflect on the fields of the type and calculate its memory footprint that way.