projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-06-08 Zoltan Varga <vargaz@freemail.hu>
[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
}