You can't remove an item from an array you could say set the position to
null for an array of a reference type .. Arrays are a fixed size data
structure ..
when you define an array of int [50] think about it creating 50 ints one
after another .. the array points to the first 1 ... so array[22] points to
the memory address of array[0] + 22 * size of your data. In order to remove
an index you would have to recreate the array
Cheers,
Greg Young
MVP - C#
"None" <vi********@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi,
I have declared array as Int[] ids = new int[50];
In ArrayList we can remove specified index using RemoveAt(5)
method. My question is how can we do this one with int array (single
dimensional array) or else is there any alternative solution for this?
If anybody knows the solution pls let me know.
Thanks and Regards,
Vinothkumar B
bv*****@tvsinfotech.com