fork(6) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string s = "I am Bob";
  8. Console.WriteLine(s.Replace(" ", "").Length);
  9. Console.WriteLine(s.Replace(" ", null).Length);
  10. Console.WriteLine(s.Replace(" ", string.Empty).Length);
  11. }
  12. }
Success #stdin #stdout 0.03s 33856KB
stdin
Standard input is empty
stdout
6
6
6