I have this:
List s = new List{\"\", \"a\", \"\", \"b\", \"\", \"c\"};
I want to remove all the empty elements
You can use List.RemoveAll:
C#
s.RemoveAll(str => String.IsNullOrEmpty(str));
VB.NET
s.RemoveAll(Function(str) String.IsNullOrEmpty(str))