2009-11-17 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0617.cs
blob04a97a9f2a36b933becb2ce19c64e7077260f0bc
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
2 // Line : 20
4 using System;
6 [AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
7 public class SimpleAttribute : Attribute {
9 string name = null;
11 public readonly string MyNamedArg;
13 public SimpleAttribute (string name)
15 this.name = name;
20 [Simple ("Dummy", MyNamedArg = "Dude!")]
21 public class Blah {
23 public static void Main ()