TlsAbstractCipherSuite.cs renamed as CipherSuite.cs
[mono.git] / mcs / tests / test-39.cs
index 81126c901c3c910214c01876ffdadf1de00b411b..52f243c62f0bca66f20e0278fda99cb667c0ac69 100644 (file)
@@ -1,25 +1,44 @@
 using System;
+[AttributeUsage (AttributeTargets.Class | AttributeTargets.Interface, 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;
+                }
+        }
+        
+}
 
-[AttributeUsage (AttributeTargets.Class)]
-       public class SimpleAttribute : Attribute {
+[Simple ("Interface test")]
+public interface IFoo {
+        void MethodOne (int x, int y);
+        bool MethodTwo (float x, float y);
+}
 
-               string name = null;
-               
-               public SimpleAttribute (string name)
-               {
-                       this.name = name;
-               }
-       }
+[Simple ("Dummy", MyNamedArg = "Dude!")]
+[Simple ("Vids", MyNamedArg = "Raj", AnotherArg = "Foo")]      
+public class Blah {
 
-[Simple ("Dummy")]
-       public class Blah {
+        public static int Main ()
+        {
+                Console.WriteLine ("A dummy app which tests attribute emission");
+                return 0;
+        }
+}
 
-               public static int Main ()
-               {
-                       Console.WriteLine ("A dummy app which tests attribute emission");
-
-                       return 0;
-               }
-       }
-