fork(1) download
  1. using System;
  2. using System.Reflection;
  3.  
  4. class Pussy
  5. {
  6. private int depth;
  7. private string prettiness;
  8. public void PrintDepth() {
  9. Console.WriteLine(depth);
  10. }
  11. }
  12. public class Test
  13. {
  14. public static void Main()
  15. {
  16. var p = new Pussy();
  17. typeof(Pussy).GetField("depth", BindingFlags.NonPublic | BindingFlags.Instance).SetValue(p, 200);
  18. p.PrintDepth();
  19. }
  20. }
Success #stdin #stdout 0.01s 131520KB
stdin
Standard input is empty
stdout
200