fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Y y = new Y();
  8. var res = y.GetType().GetProperty("x").PropertyType.GetProperty("str");
  9. Console.Error.WriteLine(res);
  10. }
  11. }
  12.  
  13. class X
  14. {
  15. public string str{get;set;}
  16. }
  17.  
  18. class Y
  19. {
  20. public X x{get;set;}
  21. }
Success #stdin #stdout #stderr 0.03s 33880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
System.String str