When I add a control to a form, visual studio assigns various of the properties of that form a value of null in the auto-generated designer code.
I don't want the designer to make the redundant assignment (the value is already null).
Can anyone tell me how to prevent it?
example
MyControl has property
public SomeClass MyProperty
{
get { return m_MyValue; }
set { m_MyValue = value; }
}
designer then autogenerates the following:
myControl1.MyProperty = null;