c# - refresh array element -
i using array command in saving value 1 one.
now have delet 1 of element , refresh simultaneuosly.
for example....
string[] arr= new string(25); arr[0]="a"; arr[1]="b"; arr[2]="c"; , on....
now after deleting sec element via arr[1]=null;
i want refreshed array mentioned below...
arr[0]="a"; arr[1]="c"; , on....
please help...
thanks in advance,,,
it sounds should using list<string>
rather array, give functionality describing.
although arrays can resized (thanks @austin brunkhorst), not "cheap" , would need move around yourself.
it should noted, lots of inserts , removes lists can inefficient, you'd improve off linkedlist<string>
. these have advantages , disadvantages. google linked list
more info.
c# .net
No comments:
Post a Comment