fork(3) download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. List<String> s = new List<string>(){ "", "a", "", "b", "", "c" };
  9. s.RemoveAll(str => string.IsNullOrEmpty(str));
  10. foreach (var i in s)
  11. {
  12. Console.WriteLine(i);
  13. }
  14. }
  15. }
Success #stdin #stdout 0.03s 34832KB
stdin
Standard input is empty
stdout
a
b
c