language: C# (mono-2.8)
date: 127 days 21 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Collections.Generic;
 
public class Test
{
        public static void Main()
        {
            List<String> s = new List<string>(){ "", "a", "", "b", "", "c" };
            s.RemoveAll(str => string.IsNullOrEmpty(str));
            foreach (var i in s)
            {
                Console.WriteLine(i);
            }
        }
}