|
I know that in order for a property not to be serialized, one should supply a defaultvalue attribute, so if its value is the same as the supplied attribute, VS will not generate additional codes in the InitilizeComponent section.
My question is with regard to the .NET inherited properties like Size, Color, Name, etc. Since most of these properties does not have defaultvalues with them, they are always serialized in every inherited form eventhough their value is just the same as my base form.
I've seen that most programmers are overriding these properties to be able to include a defaultvalue attribute. Is this the only way to avoid the unnecessary code generation for such properties? |