String[] URL= {"1","2","","4","6",""};
var temp = new List<string>();
foreach (var s in URL)
{
if (!string.IsNullOrEmpty(s))
{
temp.Add(s);
}
URL = temp.ToArray();
var temp = new List<string>();
foreach (var s in URL)
{
if (!string.IsNullOrEmpty(s))
{
temp.Add(s);
}
URL = temp.ToArray();
No comments:
Post a Comment