fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. String str1 = "Hello";
  8. Console.WriteLine(str1);
  9. tell(str1);
  10. Console.WriteLine(str1);
  11. tellByRef(ref str1);
  12. Console.WriteLine(str1);
  13. }
  14.  
  15. public static void tell(String str2) {
  16. str2 = "kdok123";
  17. }
  18.  
  19. public static void tellByRef(ref String str3) {
  20. str3 = "kdok123";
  21. }
  22. }
Success #stdin #stdout 0.02s 33728KB
stdin
Standard input is empty
stdout
Hello
Hello
kdok123