array assignment

  • Thread starter Thread starter edi
  • Start date Start date
E

edi

Hi.
I need help.

How can I assign one array to another by reference from current position?
(I prefer managed code)
For example in C
int a[10];int b[5];
....
a=&b[5];

Thanks in advance!
 
edi said:
I need help.

How can I assign one array to another by reference from current position?
(I prefer managed code)
For example in C
int a[10];int b[5];
...
a=&b[5];

Thanks in advance!

You can't. Arrays are separate objects in .NET - they are always
distinct portions of memory (I believe).

You could always write your own wrapper class which mimicked this
behaviour, of course.
 
Back
Top