1 // cs0617.cs: `MyNamedArg' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static
6 [AttributeUsage (AttributeTargets
.Class
, AllowMultiple
= true)]
7 public class SimpleAttribute
: Attribute
{
11 public readonly string MyNamedArg
;
13 public SimpleAttribute (string name
)
20 [Simple ("Dummy", MyNamedArg
= "Dude!")]
23 public static void Main ()