Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / property.cs
1 using System;
2
3 public class TestProp {
4
5         private int my_prop;
6
7         public int MyProp {
8                 get {return my_prop;}
9                 set {my_prop = value;}
10         }
11
12         public TestProp (int v) {
13                 my_prop = v;
14         }
15
16         public static int Main() {
17                 TestProp p = new TestProp (2);
18                 if (p.MyProp != 2)
19                         return 1;
20                 p.MyProp = 54;
21                 if (p.MyProp != 54)
22                         return 2;
23         return 0;
24         }
25 }