In ilasm/tests:
[mcs.git] / tests / test-39.cs
blob52f243c62f0bca66f20e0278fda99cb667c0ac69
1 using System;
2 [AttributeUsage (AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true)]
3 public class SimpleAttribute : Attribute {
5 string name = null;
7 public string MyNamedArg;
9 private string secret;
11 public SimpleAttribute (string name)
13 this.name = name;
16 public string AnotherArg {
17 get {
18 return secret;
20 set {
21 secret = value;
27 [Simple ("Interface test")]
28 public interface IFoo {
29 void MethodOne (int x, int y);
30 bool MethodTwo (float x, float y);
33 [Simple ("Dummy", MyNamedArg = "Dude!")]
34 [Simple ("Vids", MyNamedArg = "Raj", AnotherArg = "Foo")]
35 public class Blah {
37 public static int Main ()
39 Console.WriteLine ("A dummy app which tests attribute emission");
40 return 0;