3 namespace BrokenOverrideProperty
5 abstract class BaseClass
7 protected BaseClass (string text)
12 public virtual string Whatever { get; set; }
15 class DerivedClass : BaseClass
17 public string CalledValue;
19 public DerivedClass (string text) : base (text)
23 public override string Whatever {
25 return "DerivedClass";
29 Console.WriteLine ("set called with {0}", value);
36 public static int Main ()
38 var klass = new DerivedClass ("test-value");
39 if (klass.CalledValue != "test-value")