コード例 #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
ファイル: property.cs プロジェクト: xia13520/dnSpy-Unity-mono
    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);
    }