ups, du = man
Se her:
http://www.dotnetmonster.com/Uwe/Forum.aspx/winform-design-time/284/Problems-with-codedom-serializationOg taget udfra et eksamensmateriale:
There is no way in .NET to specify a color as a parameter attribute. This is why you have to supply the ResetTextColor and ShouldSerializeTextColor methods to enable Visual Studio .NET design-time support for your control. Visual Studio .NET will automatically recognize these methods.
DefaultValue won't work with Color because there is no way in .NET to specify a color as a parameter attribute. An attribute argument must be a constant expression, typeof expression or array creation expression.
You should set either the DefaultValue attribute or the ResetXXX and ShouldSerializeXXX methods, but not both. Also, in .NET you can't specify a color as a parameter attribute.
(PrepLogic Exam Question # 37)