1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression // Line: 18 using System; enum E { Value } class AAttribute : Attribute { public AAttribute (Enum e) { } } [A (E.Value)] class Test { }