I thought about it. classes are obviously passed to ptr. I suspect that the structures are transmitted by copying them, but I do not know for sure. (it seems that the waste for the int array has every element a ptr and passes ptrs for ints)
But thinking about this, List<MyStruct> cannot know the size of my structure. What happens when I do this? Are there several copies of "List`1", and every time I use it with a storage size that it doesn't have, it creates a new implementation? (setting for new offsets T and those).
This may make sense since the source will be in the CIL inside the DLL. But I fully guess how this is done? Perhaps a link or page # to ECMA standards?
user34537
source share