rbwhitaker / CSharpPlayersGuideEarlyAccess

A place to track issues with the C# Player's Guide for patches and future editions
18 stars 0 forks source link

page 167 #714

Open NikosGr2 opened 5 months ago

NikosGr2 commented 5 months ago

I am new to programming , so I am not sure if it is mistake of the book or I didn't understand correct myself the following:

page 167 : The getter is public, so we can always retrieve Name’s current value. And even without a setter, we can still assign a value to Name in an initializer or constructor. But after creation, we cannot change Name from inside or outside the class. -> shouldn't it be: "when initialized in the declaration" instead of "in an initializer" ?

Same , on page 167 : Like immutable properties, this can be assigned a value inline as an initializer or in a constructor, but nowhere else. "inline as an initializer" -> "when initialized in the declaration"

NikosGr2 commented 5 months ago

2nd case is my mistake(same, on page 167) , didn't notice the "inline" word