Named arguments not allowed on attribute 'attribute'
Some attributes do not take named arguments.
The following sample generates CS0581:
public class MyClass { [name("xxx", namedarg=3)] // CS0581 // try the following line instead // [name("xxx")] public int this[int index] { get { return 0; } } public static void Main() { } }