Link to home
Start Free TrialLog in
Avatar of MKItani
MKItani

asked on

Reset length array in C#

hi all,

i am still new in C#,
In vb.net you can use redim to reset the length of an array, but in C# how i can reset the length of an array
ASKER CERTIFIED SOLUTION
Avatar of crysallus
crysallus
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MKItani
MKItani

ASKER

thsnk  u verry much  crysallus but how i can use array.resize in case i have a array of two or three dimensials like:
A[2][3] or B[2][3][4]

i am waiting for your response.
SOLUTION
Avatar of Stephan
Stephan
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MKItani

ASKER

thank u stephanonline but this reset the length of a string of array.
Dear all,
 what i want is function that can reset a multidimension of any type of array?

Waiting for you response.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MKItani

ASKER

not accurate