1 // cs0617,cs : 'MyNamedArg' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static or const, or properties with a set accessor which are 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 ()