I want to use on DefaultValue Attribute to define default value for custom class that I write in my App. the class gives in his constractor a string. I write the follow:
[DefaultValue(Type.GetType("MyClass"),"hello world")]
but when I try to run this App. I give error:
"An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type".
can anyone explain me what the problem?