I am trying to use the defaultvalue attribute Default Value Documentation
So I know how to do a default attribute with a string
[DefaultValue("This is the message")]
But how do I do a default value for a dictionary ?
I tried this
[DefaultValue(new Dictionary<string, string>() { { "Test", "test" } })]
but I get this error
Error CS0182 An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type