fork download
  1. using System;
  2.  
  3. public interface PropertiesTest {
  4. int SomeProperty {
  5. get;
  6. }
  7. }
  8.  
  9. public class Test : PropertiesTest
  10. {
  11. public int SomeProperty {
  12. get {
  13. return 5;
  14. }
  15. }
  16.  
  17. public static void Main()
  18. {
  19. PropertiesTest test = new Test();
  20. Console.WriteLine(test.SomeProperty);
  21. }
  22. }
Success #stdin #stdout 0s 131648KB
stdin
Standard input is empty
stdout
5