/
1828.html
236 lines (202 loc) · 7.35 KB
/
1828.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="macbeth%20errata_files/filelist.xml">
<title>C# Programmers Handbook </title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place" downloadurl="http://www.5iantlavalamp.com/"/>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Gregory MacBeth</o:Author>
<o:LastAuthor>Gregory MacBeth</o:LastAuthor>
<o:Revision>1</o:Revision>
<o:TotalTime>6</o:TotalTime>
<o:Created>2004-10-04T21:46:00Z</o:Created>
<o:LastSaved>2004-10-04T21:54:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>164</o:Words>
<o:Characters>938</o:Characters>
<o:Company>Microsoft Corporation</o:Company>
<o:Lines>7</o:Lines>
<o:Paragraphs>2</o:Paragraphs>
<o:CharactersWithSpaces>1100</o:CharactersWithSpaces>
<o:Version>11.6360</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><!--[if !mso]><object
classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
<style>
st1\:*{behavior:url(#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:TheSansMonoConSemiLight;
panose-1:0 0 0 0 0 0 0 0 0 0;
mso-font-alt:Arial;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:131 0 0 0 9 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
p.Code, li.Code, div.Code
{mso-style-name:Code;
mso-style-parent:"";
margin-top:0in;
margin-right:76.5pt;
margin-bottom:0in;
margin-left:9.0pt;
margin-bottom:.0001pt;
line-height:150%;
mso-pagination:widow-orphan;
font-size:8.5pt;
mso-bidi-font-size:10.0pt;
font-family:TheSansMonoConSemiLight;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";
mso-no-proof:yes;}
p.CodeBold, li.CodeBold, div.CodeBold
{mso-style-name:"Code Bold";
mso-style-parent:Code;
mso-style-next:Code;
margin-top:0in;
margin-right:76.5pt;
margin-bottom:0in;
margin-left:9.0pt;
margin-bottom:.0001pt;
line-height:150%;
mso-pagination:widow-orphan;
font-size:8.5pt;
font-family:TheSansMonoConSemiLight;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";
font-weight:bold;
mso-bidi-font-weight:normal;
mso-no-proof:yes;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->
</head>
<body lang=EN-US style='tab-interval:.5in'>
<div class=Section1>
<p class=MsoNormal>C# Programmers Handbook </p>
<p class=MsoNormal>Errata</p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-family:Arial;color:black'>On Chapter 6 the
Samples that refer the <span class=SpellE>String.ToLower</span> aren't working,
because this method doesn't affect the String it self but returns the
transformed string.</span><o:p></o:p></p>
<p class=Code><span style='font-size:12.0pt;line-height:150%;font-family:"Times New Roman";
mso-no-proof:no'><o:p> </o:p></span></p>
<p class=Code><span style='font-size:12.0pt;line-height:150%;font-family:"Times New Roman";
mso-no-proof:no'>The following code on page 112 is incorrect.<o:p></o:p></span></p>
<p class=Code><span style='font-size:12.0pt;line-height:150%;font-family:"Times New Roman";
mso-no-proof:no'><o:p> </o:p></span></p>
<p class=Code><span style='mso-spacerun:yes'> </span>string
MyString = "<st1:place w:st="on"><st1:City w:st="on">Miami</st1:City></st1:place>,
Dolphins";</p>
<p class=Code><o:p> </o:p></p>
<p class=Code><span style='mso-spacerun:yes'> </span><b>Console</b>.WriteLine(MyString);</p>
<p class=CodeBold><span style='mso-spacerun:yes'>
</span>//Converts all characters to uppercase</p>
<p class=Code><span style='mso-spacerun:yes'>
</span>MyString.ToUpper();</p>
<p class=Code><span style='mso-spacerun:yes'> </span><b>Console</b>.WriteLine(MyString);</p>
<p class=CodeBold><span style='mso-spacerun:yes'>
</span>//Converts all characters to lowercase</p>
<p class=Code><span style='mso-spacerun:yes'>
</span>MyString.ToLower();</p>
<p class=Code><span style='mso-spacerun:yes'>
</span>Console.WriteLine(MyString);</p>
<p class=Code><o:p> </o:p></p>
<p class=Code>The code should read like this.<span style='mso-spacerun:yes'>
</span></p>
<p class=Code><span style='mso-spacerun:yes'> </span>string
MyString = "<st1:place w:st="on"><st1:City w:st="on">Miami</st1:City></st1:place>,
Dolphins";</p>
<p class=Code><o:p> </o:p></p>
<p class=Code><span style='mso-spacerun:yes'> </span><b>Console</b>.WriteLine(MyString);</p>
<p class=CodeBold><span style='mso-spacerun:yes'>
</span>//Converts all characters to uppercase</p>
<p class=Code><span style='mso-spacerun:yes'> </span>string MyUpperString
= MyString.ToUpper();</p>
<p class=Code><span style='mso-spacerun:yes'> </span><b>Console</b>.WriteLine(MyUpperString);</p>
<p class=CodeBold><span style='mso-spacerun:yes'>
</span>//Converts all characters to lowercase</p>
<p class=Code><span style='mso-spacerun:yes'> </span>string MyLowerString
= MyString.ToLower();</p>
<p class=Code><span style='mso-spacerun:yes'>
</span>Console.WriteLine(MyLowerString);</p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>