Is it possible to create an attribute that can be initialized with a variable number of arguments?
For example:
[MyCustomAttribute(new int[3,4,5])]
You can do that. Another example could be:
class MyAttribute: Attribute { public MyAttribute(params object[] args) { } } [MyAttribute("hello", 2, 3.14f)] class Program { static void Main(string[] args) { } }