using System; using System.Collections.Generic; public class Test { public static void Main() { List s = new List(){ "", "a", "", "b", "", "c" }; s.RemoveAll(str => string.IsNullOrEmpty(str)); foreach (var i in s) { Console.WriteLine(i); } } }