private List _dates;
public List Dates
{
get { return _dates; }
set { _dates = value; }
}
OR
publi
As long as you don't have to make sure the List is initialized in the getter you are fine with both versions. I just suggest that you are using one version and you don't mix it in your code...
If you need it initialized you have to go for the first version...
private List _dates;
public List Dates
{
get { if (_dates == null) _dates = new List(); return _dates; }
set { _dates = value; }
}