A
Abhishek Srivastava
Hello All,
In .Net Array is a reference type and an int is a value type. If I
create an array of int, then will the items inside the array get boxed?
If yes, it will be a terrible overhead. If no, then where will the array
elements exist? since items inside the array are value type they have to
be on the stack of the executing thread, but the array itself will be on
the heap since its a reference type.
Thanks for your help in advance.
regards,
Abhishek.
In .Net Array is a reference type and an int is a value type. If I
create an array of int, then will the items inside the array get boxed?
If yes, it will be a terrible overhead. If no, then where will the array
elements exist? since items inside the array are value type they have to
be on the stack of the executing thread, but the array itself will be on
the heap since its a reference type.
Thanks for your help in advance.
regards,
Abhishek.