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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top