markjprice / cs11dotnet7

Repository for the Packt Publishing book titled "C# 11 and .NET 7 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
566 stars 206 forks source link

An improvement: Using interpolated strings on page 351 #49

Closed MAS-OUD closed 1 year ago

MAS-OUD commented 1 year ago

on page 351, the expressions "x" + i.ToString(); and "y" + i.ToString(); can be replaced by $"x{i}" and $"y{i}", respectively.

markjprice commented 1 year ago

Thanks. I've added an item for this: https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/improvements.md#page-351---using-non-net-standard-libraries