You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I originally used a class with public properties where = would work. Late in the writing process, I switched to use records which require : instead because they are passed as named parameters instead of set as public properties. When on page 640 I tell the reader to enter that code for the first time, I correctly show the code using :, as shown in the following screenshot:
But later on page 662, I tell the reader to change the method to be asynchronous. At this point you only need to add the highlighted code and the original entered code does not need to be changed. But the code in the book mistakenly still shows the older = syntax, as shown in the following screenshot:
Hopefully most readers will not have been affected by this mistake since they are not told to change the : to = which causes your issue. But some will, so I have added an errata to warn them:
The repeated Index method code block also mistakenly misses out the logging statements and the attribute to control caching. Hopefully readers do not delete those too!
There're a lot of quite big code blocks in the web-related chapters which are most probably intended to be copy/paste'd. It apparently becomes a habit for me. I hope other readers are more careful.
Sorry if I've missed something again. There's a code on the page 663:
With
=
symbols I getCS0103
errors. Replacing them with:
solves the problem:The text was updated successfully, but these errors were encountered: