You could have:
public string Name { get;set; }
Or you could have: private string name;
public string Name {
get;
set { this.name = value?.Trim() ?? string.Empty; }
}
So you needed in the second case to also declare name as a field. The new syntax avoids having to do that "double" declaration.