Click here to Skip to main content
15,914,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everybody ,
I have a jagged Array of size 200 , i.e., now i want to remove 154 row , how can i do that ???

i.e.,string jaggedArray[][] = new jaggedArray[200][]
Posted
Updated 9-Oct-10 6:06am
v2

1 solution

Set it to null.

C#
jaggedArray[154] = null;


If you actually want it to be completely removed, you would have to move every item after it down one position and resize the array to be one item smaller. If you do that, though, I recommend using a list of lists rather than a jagged array, which has basically the same usage.
 
Share this answer
 
Comments
mina18 7-Nov-11 7:37am    
hii want set value in jagged array with keyboard but i dont know how do this??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900