예제 #1
0
 public static int Main()
 {
     TestProp
     p
     =
     new
     TestProp
     (2);
     if
     (p.MyProp
     !=
     2)
     return
     1;
     p.MyProp
     =
     54;
     if
     (p.MyProp
     !=
     54)
     return
     2;
     return
     0;
 }
예제 #2
0
    public static int Main()
    {
        TestProp p = new TestProp(2);

        if (p.MyProp != 2)
        {
            return(1);
        }
        p.MyProp = 54;
        if (p.MyProp != 54)
        {
            return(2);
        }
        return(0);
    }