mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-01-09 09:40:02 +01:00
Item for page 412 and unneeded $
This commit is contained in:
parent
5e009524c7
commit
3225cdc7af
|
|
@ -13,6 +13,7 @@ If you find any mistakes, then please [raise an issue in this repository](https:
|
|||
- [Page 188 - Running unit tests using Visual Studio Code](#page-188---running-unit-tests-using-visual-studio-code)
|
||||
- [Page 244 - Init-only properties](#page-244---init-only-properties)
|
||||
- [Page 322 - Revealing the location of a type](#page-322---revealing-the-location-of-a-type)
|
||||
- [Page 412 - Compressing streams](#page-412---compressing-streams)
|
||||
|
||||
# Page 4, 8 - Pros and cons of the .NET Interactive Notebooks extension, Downloading and installing Visual Studio Code
|
||||
|
||||
|
|
@ -109,3 +110,17 @@ If you have Source Link disabled, then to see the filename you must expand the c
|
|||
// C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.0\ref\net7.0\System.Runtime.dll
|
||||
#endregion
|
||||
```
|
||||
|
||||
## Page 412 - Compressing streams
|
||||
|
||||
> Thanks to Bob Molloy for raising this issue via email.
|
||||
|
||||
In Step 2, the following statement enables interpolated strings unnecessarily:
|
||||
```cs
|
||||
WriteLine($"The compressed contents:");
|
||||
```
|
||||
|
||||
It should be:
|
||||
```cs
|
||||
WriteLine("The compressed contents:");
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue