2001-11-21 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / tests / test-39.cs
1 using System;
2
3 [AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
4         public class SimpleAttribute : Attribute {
5
6                 string name = null;
7
8                 public string MyNamedArg;
9
10                 private string secret;
11                 
12                 public SimpleAttribute (string name)
13                 {
14                         this.name = name;
15                 }
16
17                 public string AnotherArg {
18                         get {
19                                 return secret;
20                         }
21                         set {
22                                 secret = value;
23                         }
24                 }
25                 
26         }
27
28 [Simple ("Dummy", MyNamedArg = "Dude!")]
29 [Simple ("Daya", MyNamedArg = "Raj", AnotherArg = "Foo")]       
30         public class Blah {
31
32                 public static int Main ()
33                 {
34                         Console.WriteLine ("A dummy app which tests attribute emission");
35                         return 0;
36                 }
37         }
38
39