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