string[] test={"1","","2","","3"};
test={"1","2","3"}
test = test.Where(x => !string.IsNullOrEmpty(x)).ToArray();
string[] test = { "1", "", "2", "", "3" }; test = test.Except(new List<string> { string.Empty }).ToArray();
string[] test1; int j=0; foreach(item i in test) { if(!string.IsNullOrEmpty(i)) { j=j+1; test1[j] = i } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)