blob: 21e5ec7b05b1b1b9e400818d636835c66ce37316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
using System;
public class SimpleAttribute : Attribute {
string n;
public SimpleAttribute (string name)
{
n = name;
}
}
public class Blah {
int i;
public int Value {
[Simple ("Foo!")]
get {
return i;
}
[Simple ("Bar !")]
set {
i = value;
}
}
public static int Main ()
{
//
// We need a better test which does reflection to check if the
// attributes have actually been applied etc.
//
return 0;
}
}
|