2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / errors / cs0592.cs
1 // cs0592.cs : Attribute 'Simple' is not valid on this declaration type. It is valid on 'constructor' declarations only.
2 // Line : 22
3
4 using System;
5
6 [AttributeUsage (AttributeTargets.Constructor, AllowMultiple = true)]
7         public class SimpleAttribute : Attribute {
8
9                 string name = null;
10
11                 public string MyNamedArg;
12                 
13                 public SimpleAttribute (string name)
14                 {
15                         this.name = name;
16                 }
17                 
18                 
19         }
20
21 [Simple ("Dummy", MyNamedArg = "Dude!")]
22         public class Blah {
23
24                 public static void Main ()
25                 {
26                 }
27         }
28                                            
29