blob: 0d7dff2b3a61a8020ed6e7a65e312e5e75866722 (
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
42
43
44
45
46
|
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;
}
}
[Simple ((string) null)]
int Another ()
{
return 1;
}
public static int Main ()
{
//
// We need a better test which does reflection to check if the
// attributes have actually been applied etc.
//
return 0;
}
}
|