fork(1) download
  1. public class Test
  2. {
  3. public static void Main()
  4. {
  5. // ...Some code...
  6. System.Console.WriteLine("Before");
  7.  
  8. new MyClass().DoSomething();
  9.  
  10. // ...Some other code...
  11. System.Console.WriteLine("After");
  12. }
  13. }
  14.  
  15. public class MyClass
  16. {
  17. private int _myVar;
  18.  
  19. public void DoSomething()
  20. {
  21. // ...Do something...
  22.  
  23. _myVar = 1;
  24.  
  25. System.Console.WriteLine("Inside");
  26. }
  27. }
Success #stdin #stdout 0.02s 33760KB
stdin
Standard input is empty
stdout
Before
Inside
After