I\'m working with attributes at the moment. I often run into the error \'An attribute argument must be a constant expression, typeof expression or array creation expression
Attributes in C# are compile time artifacts, so in order to be created they have to have a constant type parameters/markers/whatever...
C#
There are possible attempts to do what you are, I suppose, going to do:
Dynamic Attributes in C#