标签:between lsp col possibly missing read different methods prim
Version |
Location |
Description |
|
Page 15-16 |
The keyword ‘in‘ appears in both the reserved keyword list and the contextual keyword list. Note
from the Author or Editor: |
Printed |
Page 15 |
Item "longnamespace" should be two different items "long" and "namespace". |
|
Page 25 |
The Paragraph: "No conversion can be made from the bool type to numeric types or vice versa." I do not believe that this is the intent, I believe that the intent is "No casting conversion can be made from..." Thank you for your attention. --Avi |
Printed |
Page 29 |
Keywords and identifiers in normal text are divided wherever the line ends - in this case ‘DivideByZeroException‘ is separated into ‘Divid‘ at the end of the second line of the paragraph and ‘eByZeroException‘ at the beginning of the third line. That‘s just one of numerous examples. My guess is, that the corresponding style description is broken (at least for print). These expressions should not be separatable _at_all_ in normal text except at blanks! To call it annoying is an understatement, because when happening at the right position I can only guess if it is meant to be two words or one expression instead ... Note
from the Author or Editor: |
|
Page 36 |
The code: string a2 = @ "\\server\fileshare\helloworld.cs"; Should be: string a2 = @"\\server\fileshare\helloworld.cs"; Note
from the Author or Editor: |
Printed |
Page 37 |
You discuss how to format an interpolated string in this section, but not how to pad it. However, you appear to demonstrate this feature much later (pg. 1050) without any discussion: Console.WriteLine($"{token.Kind(),-30} {token.Text}"); Note
from the Author or Editor: |
|
Page 49 |
The text: just as though the parameter were mandatory. Should be: just as though the parameter was mandatory. |
|
Page 49 |
There is typo in second word "nameSpace" "The namepace keyword defines a namespace" |
Printed |
Page 56 |
string s = (sb == null ? "nothing" : sb.ToString()); // the original line if (s == null) s = "nothing"; // this is missing // the original line is not strictly equivalent to the code line 23 because // when sb.ToString() returns null, s in line 23 is "nothing", in 25 is null Note
from the Author or Editor: |
|
Page 75 |
The text: A method’s signature comprises its name and parameter types Should also include order of parameters. Note
from the Author or Editor: |
|
Page 101 |
this incurs a useful savings when should be: this incurs useful savings when or: this incurs a useful saving when Note
from the Author or Editor: |
Printed |
Page 115 |
In the example that shows the effective substitution for Stack<int> the line: int[] data; should read: int[] data = new int[100] ; |
|
Page 187 |
Should the sixth word in "For every value type or pointer type V, there is a corresponding pointer type V*." be reference instead of pointer? Note
from the Author or Editor: |
|
Page 196 |
void Z(char[ ] 1, float[,] p2) {...} should be void Z(char[ ] a1, float[,] p2) {...} |
|
Page 219 |
CompareTo instance method or the static Compare and CompareOrdinal methods: these return a positive or negative number—or zero—depending on whether the first value comes before, after, or alongside the second. This is wrong because following two pages later is right. All of the order-comparison methods return a positive number, a negative number, or zero, depending on whether the first value comes after, before, or alongside the second value: |
Printed |
Page 233 |
Within the section "Formatting and parsing" on page 233 there is the text ‘ToString is overloaded to accept a format string and provider... We describe this in "Formatting and parsing on page 233." ‘ That should read: ‘We describe this in "Formatting and parsing" on page 240" |
Printed |
Page 570 |
The text says ‘For a full discussion, see ... and "Locking and Thread Safety‘ on page 570 in Chapter 22.‘ The page reference should be 912. |
Printed |
Page 585 |
At the end of the paragraph, "we wouldn‘t care if turns out..." should probably be "we wouldn‘t care if it turns out...". |
Printed |
Page 586 |
In the last phrase, "on page 585 in chapter 23.". Chapter 23 starts at page 945. Note
from the Author or Editor: |
|
Page 591 |
The expression, "course-grained" should be "coarse-grained". This error occurs more than once - e.g. on page 592, at the end of the paragraph starting, "Now we have a call graph", twice in the final paragraph of page 599 (although the heading to that section has the correct spelling), and in the final paragraph on page 620. |
|
Page 593 |
void DisplayPrimeCountsFrom (int i) { var awaiter = GetPrimesCountAsync (i*1000000 + 2, 1000000).GetAwaiter(); awaiter.OnCompleted (() => { Console.WriteLine (awaiter.GetResult() + " primes between..."); if (i++ < 10) DisplayPrimeCountsFrom (i); else Console.WriteLine ("Done"); }); } Here within awaiter.OnCompleted(()=>...), if(i++ <10) ... should be if(++i <10) instead. I am sure the author knows the difference between pre-increment and post-increment and it does make a difference here if the intent is to loop 10 times not 11 times. |
|
Page 596 |
Upon first executing GetPrimesCount..., it should be GetPrimesCountAsync. |
Printed |
Page 772 |
The sentence "The Framwork also lets you add .resource files are... does not quite make sense. Possibly this should read "...add .resource files, which are..." |
Printed |
Page 861 |
ScriptEngine does not have a GetVariable method. The GetVariable method is defined on ScriptScope, and requires a single string argument specifying the name of the variable you wish to retrieve. Note
from the Author or Editor: |
Printed |
Page 920 |
The text indicates that a number is appended to the list every second, but the argument passed to Thread.Sleep is only 100 (milliseconds), which is one tenth of a second. Note
from the Author or Editor: |
Printed |
Page 1058 |
The word "this" is missing from the following sentence: "We can fix (this) by calling NormalizeWhitespace..." |
Printed |
Page 1059 |
The first sentence in this paragraph refers to the section on the CSharpSyntaxWalker class as "SyntaxSyntaxWalker". Note
from the Author or Editor: |
Printed |
Page 1059 |
The output shown is inconsistent with the call to NormalizeWhitespace on unit, which would insert carriage returns in the following locations in the output: after the semicolon, after "Program" and after the opening curly brace. Note
from the Author or Editor: |
Printed |
Page 1064 |
The expression location.MetadataModule == compilation.References.Single() evaluates to False, not True as indicated. This is consistent with the fact that the operands are of different types (IModuleSymbol and MetadataReference, respectively). Note
from the Author or Editor: |
Printed |
Page 1070 |
While it does not affect the example, in the Program class in which symbols are renamed, the Foo declaration and usages are not consistent. Either the Foo call in Main should be static since it is defined statically, or the signature of Foo should be changed so that it is in fact an instance method and the instance call in Main can remain. This latter option also requires a change to the static call to Foo in Bar. Note
from the Author or Editor: |
Errata for C# 6.0 in a Nutshell
标签:between lsp col possibly missing read different methods prim
原文地址:https://www.cnblogs.com/tthua/p/10540034.html