I decided to use this.variableName when accessing / int strings, etc. to the fields. Will include an ArrayList, ListBox, etc. Also? How:
private ListBox usersListBox;
private void PopulateListBox()
{
this.usersListBox.Items.Add(...);
}
... Or not?
What about classes?
MyClass myClass;
private void PlayWithMyClass()
{
this.myClass = new MyClass();
this.myClass.Name = "Bob";
}
? It looks weird to me. And I don't know if I should use this.PublicProperty or just private fields.
I'm not 100% with C # terminology, but hopefully what I said makes sense.
source
share