When we define a property like
public string Name {get; set;}
dot net can make our properties code. but when we use
If there is no setter, the property can never have anything other than the default value, so doesn't serve any purpose.