What is the difference between getter-only auto properties and expression body properties?
They are syntactic sugar for two different things. The former initializes a backing field, and sets it to the expression on the right hand side of the assignment during field initialization. The latter creates a get that does exactly what is in the expression. public override bool CanRead { get; } = true; is equivalent … Read more