Page 505 small syntax inconsistency.
Closed this issue · 1 comments
pudrik commented
Thru out the book the syntax for writing substructures are mentioned in the convention
Whatever
{
some stuff
}
on 505 however this is broken as it uses
Supplier = new[] {
stuff..
}
not a critical issue but for consistency you might want to adjust this.
markjprice commented
Thanks for the feedback. :)
I would not say it is broken since the code compiles. It is not consistently formatted though since it uses a JavaScript style rather than a C# style for the curly braces. I will fix this in the sixth edition.