2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
[mono.git] / mcs / tests / test-128.cs
1 using System;
2
3 public class SimpleAttribute : Attribute {
4
5         string n;
6         
7         public SimpleAttribute (string name)
8         {
9                 n = name;
10         }
11 }
12
13 public class Blah {
14
15         int i;
16
17         public int Value {
18
19                 [Simple ("Foo!")]
20                 get {
21                         return i;
22                 }
23
24                 [Simple ("Bar !")]
25                 set {
26                         i = value;
27                 }
28         }
29
30         [Simple ((string) null)]
31         int Another ()
32         {
33                 return 1;
34         }
35         
36         public static int Main ()
37         {
38                 //
39                 // We need a better test which does reflection to check if the
40                 // attributes have actually been applied etc.
41                 //
42
43                 return 0;
44         }
45
46 }