In a recent version of C#, I cant remember which, getters and setters for properties have as shortcut an automatically implemented properties syntax.
This
protected int MyInt{get;set;}
Is equivalent to
protected int _MyInt;
protected int GetMyInt(){return _MyInt;}
protected void SetMyInt(int value){_MyInt=value;}
This
private int MyInt{get;set;}
Is equivalent to
private int _MyInt;
private int GetMyInt(){return _MyInt;}
private void SetMyInt(int value){_MyInt=value;}
The following is also valid:
public int MyInt{get;}
public int MyInt2{set;}
public int MyInt3{get;set myMethod(value);}
public int MyInt4{get{return myMethod();}}