المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : 2D Array Trim



C# Programming
10-07-2009, 12:31 AM
Hi friends,
I have two 2 Dimensional string array.I want to trim the null values in the array. coz i can't initialize the array length.
like

Function Getarray(string[,] str)
{

}
by default this array has 250 items
even if i pass 12 items.


str[i,4]
here row no should be varied

how can i trim the null values