Duplicate 'attribute' attribute
It is not possible to specify the same attribute more than once.
public class MyAttribute : System.Attribute { } public class z { [MyAttribute(), MyAttribute()] // CS0579 // try the following line instead // [MyAttribute()] public void zz() { } public static void Main() { } }