fork(2) download
  1. using System;
  2. using System.Globalization;
  3. using System.Linq;
  4. using System.Collections.Generic;
  5.  
  6. public class Test
  7. {
  8.  
  9.  
  10. public static void Main()
  11. {
  12. string result = "Likes (20)";
  13. int index = result.IndexOf('(');
  14. if (index >= 0)
  15. {
  16. result = result.Substring(index + 1);
  17. index = result.IndexOf(')');
  18. if (index >= 0)
  19. result = result.Remove(index);
  20. };
  21. Console.WriteLine(result);
  22. }
  23. }
Success #stdin #stdout 0.03s 33856KB
stdin
Standard input is empty
stdout
20