is it possible to pass an IDictionary as an attribute’s parameter:
like this:
[My(new Dictionary<string,object> { ... }]
or like this:
[My(Data = new Dictionary<string,object> {...} )]
atm I’m thinking to just pass a json string and after transform it into IDictionary<string,object>
No – with attributes you have to pass constant values to them.
Perhaps you could have multiple attributes with two properties exposed.
When you do your reflection, you could build a dictionary that way.