blob: 02dd459cdbe8d4d967aa3a15c4bb231231f84f2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// cs0592.cs : Attribute 'Simple' is not valid on this declaration type. It is valid on 'constructor' declarations only.
// Line : 22
using System;
[AttributeUsage (AttributeTargets.Constructor, AllowMultiple = true)]
public class SimpleAttribute : Attribute {
string name = null;
public string MyNamedArg;
public SimpleAttribute (string name)
{
this.name = name;
}
}
[Simple ("Dummy", MyNamedArg = "Dude!")]
public class Blah {
public static void Main ()
{
}
}
|