Get this bad boy to compile standalone
[mono.git] / mcs / tests / test-39.cs
index 81126c901c3c910214c01876ffdadf1de00b411b..7366b1c0ce2d3534d2f6636809a89da91df8a7c3 100644 (file)
@@ -1,25 +1,38 @@
 using System;
-
-[AttributeUsage (AttributeTargets.Class)]
+[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
        public class SimpleAttribute : Attribute {
 
                string name = null;
+
+               public string MyNamedArg;
+
+               private string secret;
                
                public SimpleAttribute (string name)
                {
                        this.name = name;
                }
+
+               public string AnotherArg {
+                       get {
+                               return secret;
+                       }
+                       set {
+                               secret = value;
+                       }
+               }
+               
        }
 
-[Simple ("Dummy")]
+[Simple ("Dummy", MyNamedArg = "Dude!")]
+[Simple ("Vids", MyNamedArg = "Raj", AnotherArg = "Foo")]      
        public class Blah {
 
                public static int Main ()
                {
                        Console.WriteLine ("A dummy app which tests attribute emission");
-
                        return 0;
                }
        }
-                                          
+