string[] myArray=new []{"1","2","3",""};
string[] myArray=new []{"1","2","3"};
ToList
ToArray
ICollection<T>
Where
string[] x = new string[] { "1", "", "2", "", "3", "4" }; List<string> y = x.ToList<string>(); y.RemoveAll(p => string.IsNullOrEmpty(p)); x = y.ToArray()
System.Collections.Generic.List<>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)