fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. protected static String s;
  6.  
  7. public class Class2
  8. {
  9. public void DoSomething()
  10. {
  11. Test.s = "blah";
  12. }
  13. }
  14.  
  15. public static void Main()
  16. {
  17. Class2 c = new Class2();
  18. c.DoSomething();
  19. Console.WriteLine(s);
  20. }
  21. }
Success #stdin #stdout 0.02s 33816KB
stdin
Standard input is empty
stdout
blah