If I have a .Net Form with a component / object, such as a text field, that I need to get from the parent or other form, I obviously need to “update” the modifier of this component to an internal or public level variable.
Now, if I were to provide a public variable like int or string, etc. in my form class, I would not think twice about using Getters and (possibly) Setters around this, even if they did nothing else than provide direct access to the variable.
However, the VS developer does not seem to implement such Getters / Setters for those public objects that are components in the form (and therefore do not correspond to good programming practice).
So the question is: To do the “right thing”, do I have to wrap such components or objects of the VS constructor in Getter and / or Setter?
source share