2 [AttributeUsage (AttributeTargets
.Class
| AttributeTargets
.Interface
, AllowMultiple
= true)]
3 public class SimpleAttribute
: Attribute
{
7 public string MyNamedArg
;
11 public SimpleAttribute (string name
)
16 public string AnotherArg
{
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")]
37 public static int Main ()
39 Console
.WriteLine ("A dummy app which tests attribute emission");