It all depends on where the stuct instances exist, heap or stack. If you
create them on the heap, you already have references to them; if you create
them on the stack, you *cannot* get references to them.
This creates them on the heap:
MyStruct[] a = new MyStruct[10];
for (int i = 0; i < 10; i++)
a[i].x = i;
"Jose Ines Cantu Arrambide" <jo*****@nospam.com> wrote in message
news:uv**************@TK2MSFTNGP11.phx.gbl...
Hello,
I want to store references not values of MyStruct in an Array
(MyStruct[])... is it possible? How?
Thanks,
Jose.