What is the difference between a property with a omitted setter and a property with a private setter?
public string Foo { get; private set; }
vs
public string Foo { get; }
See Question&Answers more detail:osWhat is the difference between a property with a omitted setter and a property with a private setter?
public string Foo { get; private set; }
vs
public string Foo { get; }
See Question&Answers more detail:os