2 // Test for overloaded properties.
7 public virtual string Message
{
14 public class der
: basec
{
15 public override string Message
{
24 public virtual int Thingy
{
25 get { return thingy; }
26 set { thingy = value; }
30 class Derived
: Base
{
31 public int BaseThingy
{
32 get { return Thingy; }
35 public override int Thingy
{
36 // override the set constructor
46 // These tests just are compilation tests, the new property code
47 // will excercise these
50 if (d
.Message
!= "der")
53 basec b
= new basec ();
54 if (b
.Message
!= "base")
57 Derived dd
= new Derived ();
59 if (dd
.BaseThingy
!= 0)
62 Console
.WriteLine ("Test ok");