This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / tests / test-39.cs
1 using System;
2 [AttributeUsage (AttributeTargets.Class | AttributeTargets.Interface, 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 ("Interface test")]
28 public interface IFoo {
29         void MethodOne (int x, int y);
30         bool MethodTwo (float x, float y);
31 }
32
33 [Simple ("Dummy", MyNamedArg = "Dude!")]
34 [Simple ("Vids", MyNamedArg = "Raj", AnotherArg = "Foo")]       
35 public class Blah {
36
37         public static int Main ()
38         {
39                 Console.WriteLine ("A dummy app which tests attribute emission");
40                 return 0;
41         }
42 }
43
44