You are on page 1of 34

<html lang="en-us"><head><link title="Microsoft Support Search"

type="application/opensearchdescription+xml" rel="search"
href="/common/opensearchdescriptor.aspx?ln=en-us" /><meta name="DCSext.sup_cid"
content="923018" /><meta name="DCSext.sup_cln" content="en-us" /><meta
name="DCSext.sup_ct" content="kb" /><meta name="DCSext.sup_ln" content="en-us"
/><meta name="DCSext.sup_sd" content="gn" /><script type="text/javascript"
src="/common/script/gsfx/jquery-1.2.6.js"></script><script type="text/javascript"
src="/common/script/gsfx/default.js?27"></script><script
type="text/javascript">setcookieval("gssSITE","gn",'',true);</script><script
type="text/javascript">setcookieval("gssTHEME","gn",'',true);</script><script
type="text/javascript">setcookieval("gssTOOLBAR","gn",'',true);</script><script
type="text/javascript">var g_currentContent='kb\x3ben-
us\x3b923018';</script><script type="text/javascript"
src="/common/script/fx/survey.js?27"></script><meta name="robots"
content="noarchive" /><meta name="Search.Assets" content="0" /><meta
name="Search.Description"
content="Additional&#32;corrections&#32;for&#32;this&#32;book&#32;are&#32;availabl
e&#32;in&#32;article&#32;,&#32;and&#32;.&#32;The&#32;following&#32;topics&#32;are&
#32;covered&#58;&#32;CD-
ROM&#58;&#32;&#34;not&#34;&#32;should&#32;be&#32;removed&#32;from&#32;assessment&#
32;question&#32;CD-
ROM&#58;&#32;Assessment&#32;answer&#32;should&#32;include&#32;ICollection&#32;and&
#32;not&#32;IDictionaryEnumerator&#32;CD-ROM&#58;..." /><meta
name="Search.QueryWords" content="0-7356-2277-9&#32;978-0-7356-2277-7" /><meta
name="Search.DateModified" content="2007-11-07T21&#58;44&#58;35" /><meta
name="Search.scid" content="kb&#59;en-us&#59;923018" /><meta name="Search.Title"
content="MCTS&#32;Self-Paced&#32;Training&#32;Kit&#32;&#40;Exam&#32;70-
536&#41;&#58;&#32;Microsoft&#174;&#32;.NET&#32;Framework&#32;2.0&#8212;Application
&#32;Development&#32;Foundation&#32;comments&#32;and&#32;corrections&#32;Part&#32;
1" /><meta name="Search.Products" content="" /><meta name="Search.KBParents"
content="" /><meta name="KBParents" content="" /><meta name="Search.Audiences"
content="kbAudDeveloper" /><meta name="Search.ContentType" content="kb" /><meta
name="Search.Retire" content="0" /><meta name="Search.ContentID"
content="923018" /><meta name="Search.KeyWords" content="KB923018" /><meta
name="Search.MT" content="0" /><meta name="Search.KB3" content="0" /><meta
name="Keywords" content="KB923018" /><meta name="Description"
content="Additional&#32;corrections&#32;for&#32;this&#32;book&#32;are&#32;availabl
e&#32;in&#32;article&#32;,&#32;and&#32;.&#32;The&#32;following&#32;topics&#32;are&
#32;covered&#58;&#32;CD-
ROM&#58;&#32;&#34;not&#34;&#32;should&#32;be&#32;removed&#32;from&#32;assessment&#
32;question&#32;CD-
ROM&#58;&#32;Assessment&#32;answer&#32;should&#32;include&#32;ICollection&#32;and&
#32;not&#32;IDictionaryEnumerator&#32;CD-ROM&#58;..." /><meta name="MS.LOCALE"
content="en" /><meta http-equiv="content-type" content="text/html; charset=utf-
8" /><script type="text/javascript" src="/common/script/gsfx/search.js?
27"></script><script type="text/javascript"
src="http://autocomplete.support.microsoft.com/script/ac.js?27"></script><script
type="text/javascript">var gCookieDomain='';</script><title>MCTS Self-Paced
Training Kit &#40;Exam 70-536&#41;&#58; Microsoft&#174; .NET Framework
2.0&#8212;Application Development Foundation comments and corrections Part
1</title><XMLREADER><link rel="stylesheet" type="text/css"
href="/common/css/default/default.css?27" /><link rel="stylesheet" type="text/css"
href="/common/css/default/XmlContent.css?27" /><script type="text/javascript"
src="/common/script/gsfx/kb.js?27"></script><script type="text/javascript"
src="/common/script/gsfx/stickypanel.js?27"></script><link rel="stylesheet"
type="text/css" href="/common/css/default/stickypanel.css?27" /><link
rel="stylesheet" type="text/css" href="/common/css/default/branding.css?27"
/></XMLREADER>
<!-- RESG: 12/4/2009 9:39:43 AM - RESX: 1/1/0001 12:00:00 AM -->
<!-- (c) 2009 Microsoft Corporation. All Rights Reserved -->
<style type="text/css">html body, html select, html input, html form, html
textarea{font-family : Verdana, Arial, Helvetica, Sans-Serif;}</style><script
type="text/javascript">var
PersonalizationInfo='a2I5MjMwMTgIZW4tdXMITUNUUyBTZWxmLVBhY2VkIFRyYWluaW5nIEs_';</s
cript><link rel="stylesheet" type="text/css"
href="/common/css/fx/surveytrigger.css?27" ><script type="text/javascript"
src="/common/script/fx/surveycookieutil.js?27"></script><script
type="text/javascript" src="/common/script/fx/surveytrigger.js?
27"></script></head><body onload="thisLoad();" onunload="thisUnload();">
<style type="text/css">
body
{

background:url('/library/images/support/cn/parent_bkgnd.png') repeat-x
#FFFFFF;

#gsfx_brnd_PageHeaderImage
{
background:url('/library/images/support/cn/mso_energy.jpg') no-repeat top
center;
}

#gsfx_brnd_SiteHeaderImage
{
height:0px;
}

.gsfx_brnd_NetworkLink, .gsfx_brnd_NetworkLink:visited, .gsfx_brnd_NetworkLink


a, .gsfx_brnd_NetworkLink a:visited
{
color: #FFFFFF;
}

.gsfx_brnd_NetworkLink:hover, .gsfx_brnd_NetworkLink:active,
.gsfx_brnd_NetworkLink:focus,
.gsfx_brnd_NetworkLink a:hover, .gsfx_brnd_NetworkLink a:active,
.gsfx_brnd_NetworkLink a:focus
#gsfx_brnd_NetworkFooter .gsfx_brnd_NetworkLink:hover span,
#gsfx_brnd_NetworkFooter .gsfx_brnd_NetworkLink:active span,
#gsfx_brnd_NetworkFooter.gsfx_brnd_NetworkLink:focus span,
#gsfx_brnd_NetworkFooter .gsfx_brnd_NetworkLink a:hover span,
#gsfx_brnd_NetworkFooter .gsfx_brnd_NetworkLink a:active span,
#gsfx_brnd_NetworkFooter .gsfx_brnd_NetworkLink a:focus span
{
color: #FE5815;
border-bottom-color: #FE5815;
}

#gsfx_brnd_NetworkHeader, #gsfx_brnd_NetworkHeaderLinks
{
color: #ffffff;
}

#gsfx_brnd_SiteHeader, #gsfx_brnd_PageLogoWrapper, #gsfx_brnd_PageTitle,


#gsfx_brnd_SearchWrapper a, #gsfx_bsrch_poweredbycell span
{
color: #ffffff;
}

#gsfx_bsrch_catsel a, #gsfx_bsrch_catsel span


{
border-color: #ffffff;
}

#gsfx_brnd_SiteFooter, #gsfx_brnd_SiteFooterWrap
{
color: #398DCA;
}

#gsfx_brnd_NetworkFooter, #gsfx_brnd_FooterLinkContainer,
#gsfx_brnd_FooterLinkContainer span,
#gsfx_brnd_copyright_container, #gsfx_brnd_copyright_container span
{
color: #398DCA;
}

</style>
<!--[if lte IE 6]>
<style type="text/css">
#gsfx_brnd_PageHeaderImage {background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/library/images/sup
port/cn/mso_energy.jpg', sizingMethod='image');}
#gsfx_brnd_SiteImgWedge {background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='',
sizingMethod='scale');}
#gsfx_brnd_PageLogo {visibility:hidden;}
#gsfx_brnd_legacy_PageLogo
{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='',
sizingMethod='image');}
#gsfx_brnd_MSLogo {visibility:hidden;}
#gsfx_brnd_legacy_MSLogo
{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/library/images/su
pport/cn/gsfx_brnd_ms_logo_sml_blk.png', sizingMethod='image');}
</style>
<![endif]-->

<div id="gsfx_brnd_CenterContent">
<div id="gsfx_brnd_PageWrapper">
<div id="gsfx_brnd_PageContainer">
<div id="gsfx_brnd_PageHeaderImage"></div>
<div id="gsfx_brnd_HeaderContainer">
<div id="gsfx_brnd_NetworkHeader">
<div id="gsfx_brnd_CorpMarketingContainer"
class="gsfx_brnd_NetworkLeft">
<div id="gsfx_brnd_CorpMarketingSpace"
class="gsfx_brnd_NetworkLeft">
</div>
</div>
<!--Table is used here in order to properly order the links for
LTR and RTL while maintaining the correct tab order-->
<table summary="Network Header Links"
id="gsfx_brnd_NetworkHeaderLinks" class="gsfx_brnd_NetworkRight">
<tr>
<td class="gsfx_brnd_NetworkLinkContainer">
<span id="gsfx_brnd_LocalName">
United States
</span>
</td>
<td class="gsfx_brnd_NetworkLinkContainer
gsfx_brnd_NetworkLink">
<a href="/common/international.aspx"
id="L_153552">Change</a>
</td>

<td class="gsfx_brnd_NetworkLinkContainer
gsfx_brnd_HeaderSeperator">|</td>

<td class="gsfx_brnd_NetworkLinkContainer
gsfx_brnd_NetworkLink">
<a href="http://www.microsoft.com/en/us/sitemap.aspx"
id="L_153551">All Microsoft Sites</a>
</td>

</tr>
</table>
</div>
<div id="gsfx_brnd_SiteHeader">
<div id="gsfx_brnd_SiteHeaderImageContainer">
<div id="gsfx_brnd_SiteHeaderImage">

</div>
</div>

<div id="gsfx_brnd_PageLogoWrapper" class="gsfx_brnd_NetworkLeft">


<a id="gsfx_brnd_PageLogoLink"
href="http://www.microsoft.com"></a>
<span id="gsfx_brnd_PageTitle"><a href="/" style="color:white;
text-decoration :none">Microsoft Support</a></span>
</div>
<div id="gsfx_brnd_SearchWrapper" class="gsfx_brnd_NetworkRight">

<form id="frmsrch" action="/search/default.aspx" onsubmit="return


SaveSimpleSearch();" method="get">
<style type="text/css">
#gsfx_cat_sel_ie6
{
visibility:hidden;
}
</style>
<script type='text/javascript'>setACStartChars('4:');</script>
<!--[if lte IE 6]>
<style type="text/css">
.gsfx_bsrch_container
{
background-image:none;
}
.gsfx_bsrch_container1
{
display:none;
position:absolute;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/library/im
ages/support/cn/ss_live_glass_border.png');
}
#gsfx_cat_sel
{
background-image:none;
}
#gsfx_cat_sel_ie6
{
position:absolute;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/library/im
ages/support/cn/ss_dd_select1.png');
visibility:visible;
width:12px;
height:24px;
}
</style>
<div id="gsfx_bsrch_bg_ie6" class="gsfx_bsrch_container gsfx_bsrch_container1"
style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/library/ima
ges/support/cn/ss_live_glass_border.png');"></div>
<![endif]-->
<div id="gsfx_bsrch_bg" class="gsfx_bsrch_container">
<div id="gsfx_bsrch_divQuery" style="width:304px">
<input type="text" id="gsfx_bsrch_query" style="width:272px" name="query"
maxlength="200" value="" class="siteseltxt" autocomplete="off" />
<!--span class="gsfx_bsrch_buttonwrap" id="gsfx_bsrch_websrch"-->
<!--input type="image" id="gsfx_bsrch_btnimg"
onclick="submitSimpleSearch('http://www.bing.com/search?mkt=en-us&q=', $
('#gsfx_bsrch_query').get(0).value);" /-->
<input type="image" alt="" class="gsfx_img_png" style="width:
20;height: 20;" src="/library/images/support/CN/ss_live_button.png"
onclick="SaveSimpleSearch();" id="gsfx_bsrch_btnimg" /><!--[if lte IE 6]><input
type="image" src="/library/images/support/cn/onepix.gif" alt=""
class="gsfx_div_png"
style="width:20px;height:20px;filter:progid:DXImageTransform.Microsoft.AlphaImageL
oader(src='/library/images/support/CN/ss_live_button.png', sizingMethod='scale');"
onclick="SaveSimpleSearch();" id="gsfx_bsrch_btnimg" /><![endif]-->

<!--/span-->
</div>

<div id="gsfx_cat_sel" onmouseover="ChangeBackground(this, true)"


onmouseout="ChangeBackground(this, false)" onclick="ShowHideLangSel(event)"
style="display:none">
<div id="gsfx_cat_sel_ie6" onmouseover="ChangeBackground(this, true)"
onmouseout="ChangeBackground(this, false)" style="display:none"></div>

<input type="hidden" id="catalog" name="catalog" value="LCID=1033"


/>
</div>
<div id="gsfx_bsrch_logo_div">
<img alt="" class="gsfx_img_png" style="width: 51;height: 17;"
src="/library/images/support/CN/bing_logo_white.png"
onclick="CallWebSearch('http\x3a\x2f\x2fwww.bing.com\x2fsearch\x3fmkt\x3den-
us\x26q\x3d','http\x3a\x2f\x2fwww.bing.com\x2fsearch\x3fmkt\x3den-us\x26q\x3d');"
id="gsfx_bsrch_logo" /><!--[if lte IE 6]><div alt="" class="gsfx_div_png"
style="width:51px;height:17px;filter:progid:DXImageTransform.Microsoft.AlphaImageL
oader(src='/library/images/support/CN/bing_logo_white.png',
sizingMethod='scale');"
onclick="CallWebSearch('http\x3a\x2f\x2fwww.bing.com\x2fsearch\x3fmkt\x3den-
us\x26q\x3d','http\x3a\x2f\x2fwww.bing.com\x2fsearch\x3fmkt\x3den-us\x26q\x3d');"
id="gsfx_bsrch_logo"></div><![endif]-->
</div>
<br />
</div>
<script
type="text/javascript">try{MS.Support.AC.MakeAutoComplete({id:'gsfx_bsrch_query',
lcid:'1033', acURL:'http://autocomplete.support.microsoft.com',
statsObj:StatsDotNet, startChar:'4', bubbleside:'left'});}catch(e)
{}</script><script type='text/javascript'>supportedSites.push(new Site('Search
Microsoft Support', '\x2fsearch\x2fdefault.aspx', true));supportedSites.push(new
Site('Search Microsoft.com',
'http\x3a\x2f\x2fsearch.microsoft.com\x2fsearch\x2fresults.aspx\x3fview\x3den-
us\x26qu\x3d', false));supportedSites.push(new Site('Search the web',
'http\x3a\x2f\x2fwww.bing.com\x2fsearch\x3fmkt\x3den-us\x26q\x3d',
false));</script>

<!--div id="gsfx_bsrch_poweredbycell" class="gsfx_brnd_NetworkTextRight">

</div-->

<div class="hiddenformels">
<input type="hidden" name="mode" value="r" />
</div>
<noscript>
<style type="text/css">
#gsfx_bsrch_catsel a {display:none;}
#gsfx_bsrch_websrch {display:none;}
#gsfx_bsrch_query{font-style:normal;color:Black;}
</style>
<!--[if lte IE 6]>
<style>
#gsfx_bsrch_bg_ie6{display:block;right:1px}
</style><![endif]-->
</noscript>
</form>
</div>
</div>
</div>
<div id="gsfx_brnd_TopCorners" class="gsfx_brnd_CornerContainer">
<div class="gsfx_brnd_TBBorders gsfx_brnd_TransBG"
id="gsfx_brnd_TopBorder">
</div>
<div class="gsfx_brnd_Corner" id="gsfx_brnd_LUpperCorner">
</div>
</div>
<div id="gsfx_brnd_LocalToolBar" class="gsfx_brnd_TransBG
gsfx_brnd_SideBorder"><ul id="gsfx_brnd_LocalLinks"><li
class="gsfx_brnd_LocalLink"><a href="/" id="L_153581"><span>Support
Home</span></a></li><li class="gsfx_brnd_LocalSeperator">&nbsp;</li><li
class="gsfx_brnd_LocalLink"><a href="/select/?target=hub"
id="L_153582"><span>Solution Centers</span></a></li><li
class="gsfx_brnd_LocalSeperator">&nbsp;</li><li class="gsfx_brnd_LocalLink"><a
href="/search/?adv=1" id="L_153583"><span>Advanced Search</span></a></li><li
class="gsfx_brnd_LocalSeperator">&nbsp;</li><li class="gsfx_brnd_LocalLink"><a
href="http://store.microsoft.com/home.aspx?WT.mc_id=SupportSiteUS_buyproducts"
id="L_195944"><span>Buy products</span></a></li></ul></div>

<div id="gsfx_brnd_ToolbarShadow" class="gsfx_brnd_TransBG


gsfx_brnd_SideBorder"><div id="gsfx_brnd_shadow"></div></div>

<div id="gsfx_brnd_ContentContainer" class="gsfx_brnd_TransBG


gsfx_brnd_SideBorder">
<div id="contentArea">

<div id="mainRow"><div class="primaryTable"><table cellpadding="0" cellspacing="0"


class="primaryTable"><tr><td class="primaryMainColumn"><div id="mainColumn"><div
id="kb" class="kb"><div id="kb_default" class="kb_default ltr"><!-- - -KB 3 start-
- --><a id="top"></a><div class="articleProperty">Article ID: 923018 - Last
Review: November 7, 2007 - Revision: 2.23</div><h1 class="title">MCTS Self-Paced
Training Kit (Exam 70-536): Microsoft® .NET Framework 2.0—Application Development
Foundation comments and corrections Part 1</h1><div class="appliesToLink"><a
href="#appliesto">View products that this article applies to.</a></div><script
type="text/javascript">if (!loadTOCNode) {var loadTOCNode = function()
{}}</script><div id="kb_section" class="section"><h2 class="subTitle"
id="tocTitle"><span><a href="javascript:void(0);">On This Page</a></span><div
class="sectionpreview_closed"></div></h2><div class="sbody"
id="tocDiv"></div><script type="text/javascript">
var sectionFilter = "type != 'notice' && type != 'securedata' &&
type != 'querywords'";
var tocArrow = "/library/images/support/kbgraphics/public/en-
us/downarrow.gif";
var depthLimit = 10;
var depth3Limit = 10;
var depth4Limit = 5;
var depth5Limit = 3;
var tocEntryMinimum = 1;
</script><noscript><style>#tocTitle, #tocDiv{display:
none;}</style></noscript><div id="kb_expandcollapseall"
class="expandcollapseall"><a href="javascript:void(0);"
class="expandalltext">Expand all</a> | <a href="javascript:void(0);"
class="collapsealltext">Collapse all</a><script type="text/javascript">
if (kb_page_object)
{
kb_page_object.kb_imageExpandHoverText = 'Click to expand this
image';
}
</script></div><h2 class="subTitle" id="tocHeadRef"><span><a
href="javascript:void(0);">SUMMARY</a></span><div
class="sectionpreview_closed"></div></h2><script type="text/javascript">
loadTOCNode(1, 'summary');
</script><div class="sbody">
This article contains comments, corrections, and information about known errors
relating to the Microsoft Press book <i>MCTS Self-Paced Training Kit (Exam 70-
536): Microsoft® .NET Framework 2.0—Application Development Foundation</i>, 978-0-
7356-2277-7. Additional corrections for this book are available in article <a
href="/kb/935218/">935218</a><span class="pLink">
(http://support.microsoft.com/kb/935218/)
</span><span class="kb_space"></span>, <a
href="/kb/949730/">949730</a><span class="pLink">
(http://support.microsoft.com/kb/949730/)
</span><span class="kb_space"></span> and <a
href="/kb/949734/">949734</a><span class="pLink">
(http://support.microsoft.com/kb/949734/)
</span><span class="kb_space"></span>.<br><br>The following topics are
covered:<br><br><ul><li>CD-ROM: "not" should be removed from assessment
question</li><li>CD-ROM: Assessment answer should include ICollection and not
IDictionaryEnumerator</li><li>CD-ROM: Assessment answer should also include Resize
event</li><li>CD-ROM: lesson3-exercise1-Person-partial code samples are missing
from \Chapter01 folder</li><li>CD-ROM: Assessment qurestion scored
incorrectly</li><li>Page 3: System.Value referenced rather than
System.ValueType</li><li>Page 5: Date/date should be Date/none</li><li>Page 5: 4
should be 1</li><li>Page 9: NOTE is incorrect</li><li>Page 12: Term "defines" used
in place of "initializes" in step 4</li><li>Page 14: Term "class" used in place of
term "structure" in step 5</li><li>Page 18: The word "variable" is missing from
the final sentence</li><li>Page 24: C# code sample missing</li><li>Page 25:
Incorrect code in C# example</li><li>Page 46: Correction in code
example</li><li>Page 47: "Guide" used in place of "Guid"</li><li>Page 49: Invalid
character in VB code sample</li><li>Page 49: VB code sample missing Person
class</li><li>Page 51: Methods incorrectly named</li><li>Page 52: "progressBar"
used in place of "progressBar1" in code sample</li><li>Page 55: Incorrect
description of narrowing conversion behavior</li><li>Page 58: Incorrect index used
in the second code sample</li><li>Page 59: Decimal used in place of Double in code
for Exercise 1</li><li>Page 63: "narrowing" used in place of
"widening"</li><li>Page 72: "Exist property" referenced in place of "Exists
property"</li><li>Page 73: string should be DirectoryInfo object</li><li>Page 74:
DriveInfo class described incorrectly</li><li>Page 76: Unknown member description
is missing the word "type"</li><li>Page 76: Procedure said to access rather than
enumerate drives</li><li>Page 81: The term "Added" is used in place of "Created,
Deleted"</li><li>Page 83: Drive referred to in place of folder</li><li>Page 83:
The term "include" used in place of "using" in Step 2</li><li>Page 84: Incorrect
direction in step 6</li><li>Page 85: EnableRaisingEvents property referred to as
EnablingRaisingEvents</li><li>Page 89, Incorrect namespaces used in stream
types.</li><li>Page 91: Suggestion that files can be created when
read</li><li>Page 92: Incorrect description of the functionality of the Directory
class</li><li>Page 92: Description of OpenWrite method is incorrect</li><li>Page
97: "read" used in place of "write"</li><li>Page 100, Incorrect basic
functionality description of StreamWriter class</li><li>Page 104: Incorrect
description of the behavior of the sample code</li><li>Page 111: The term
"include" used in place of "using" in Step 2</li><li>Page 111: Incorrect
instruction in step 3 of Excercise 1</li><li>Page 112: Class referred to in place
of object</li><li>Page 115: The descriptions of the CanRead property is
incorrect</li><li>Page 120: CompressionMode.Compress used in place of
CompressionMode.Decompress</li><li>Page 121: The term "include" used in place of
"using" in Step 2</li><li>Pages 121 &amp; 122: Code samples are incorrect for Step
7</li><li>Page 122, Step 9: Additional note needs to be added.</li><li>Page 127:
Term "file" used in place of "directory"</li><li>Page 129: Incorrect definition
for IsolatedStorageFileStream</li><li>Page 133: Files referenced in place of
directories</li><li>Page 135: The term "include" used in place of "using" in Step
2</li><li>Page 135: Object referenced in place of class</li><li>Page 135:
Incorrect Visual Basic code in step 3</li><li>Page 136: Incorrect Visual Basic
code in steps 4 and 5</li><li>Page 137: Sample code missing</li><li>Page 139:
Clarification of data in 4th bullet down under Chapter Summary</li><li>Page 140:
Incorrect description of Case Scenarios</li><li>Page 141: Machine-level data
referred to as assembly data</li><li>Pages 145 &amp; 146: Argument location is
reversed</li><li>Page 146: TestRegExp command arguments partially
incorrect</li><li>Page 165: IsZip method mentioned in place of ReformatPhone
method</li><li>Page 170: "E." should be removed from answer E</li><li>Page 187:
"or index" should be removed</li><li>Page 188: Class referenced in place of
collection</li><li>Page 192: Missing newline in code sample</li><li>Page 192: "+
+x" should be "x++"</li></ul><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div></div><h2 class="subTitle" id="tocHeadRef"><span><a
href="javascript:void(0);">MORE INFORMATION</a></span><div
class="sectionpreview_closed"></div></h2><script type="text/javascript">
loadTOCNode(1, 'moreinformation');
</script><div class="sbody"><h3 id="tocHeadRef">CD-ROM:
"not" should be removed from assessment question</h3><script
type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>In the Lesson Review on the CD-ROM, one of the questions is
incorrect.

<br><br>Change:

<br>"Which item is not generally considered a shortcoming associated with using


COM Interop?"

<br><br>To:

<br>"Which item is generally considered a shortcoming associated with using COM


Interop?"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">CD-ROM: Assessment answer should include
ICollection and not IDictionaryEnumerator</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>In the Readiness Review assessment on the CDROM one of the
questions reads:

<br><br>"You are creating a new collection type that must be iterated using for-
each loop. Which of the following interfaces should you implement? (Choose all
that apply)
<br>ICollection
<br>IDictionaryEnumerator
<br>IDictionary
<br>IEnumerable
<br>IEqualityCOmparer"

<br><br>The assessment states that the answers are IDictionaryEnumerator and


IEnumerator.

<br><br>The correct answers are:

ICollection and IEnumerator.<br><div class="topOfPage"><a href="#top"><img


src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">CD-ROM: Assessment answer should also include
Resize event</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>In the Readiness Review Assessment, one of the questions
reads:

<br><br>"Which of the following are events for the System.Windows.Forms.Button


class? (Choose three)
<br>Serializing
<br>Enter
<br>MouseHover
<br>Resize
<br>Click
<br>MosueOver"

<br><br>The assessment states that the correct answers are: Enter, MouseHover,
Click.

<br><br>The assessment should also include the following answer as being correct:
Resize.<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">CD-ROM: lesson3-exercise1-Person-partial code
samples are missing from \Chapter01 folder</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>The Visual Basic and C# code samples "lesson3-exercise1-
Person-partial" are missing from the \Code\Chapter01 folder. The folders and files
are available for download from the Microsoft Download Center:

<br><br><a href="http://download.microsoft.com/download/c/d/a/cda2e6ee-9334-4dd9-
901f-92be283d13b2/lesson3.exe">lesson3.exe</a><span class="pLink">
(http://download.microsoft.com/download/c/d/a/cda2e6ee-9334-4dd9-901f-
92be283d13b2/lesson3.exe)
</span><span class="kb_space"></span><br><br>For additional information
about how to download Microsoft Support files, click the following article number
to view the article in the Microsoft Knowledge Base:

<br><br><a href="/kb/119591/en-us/">119591</a><span class="pLink">


(http://support.microsoft.com/kb/119591/en-us/)
</span><span class="kb_space"></span> How to Obtain Microsoft Support
Files from Online Services

<br><br>Microsoft scanned this file for viruses. Microsoft used the most current
virus-detection software that was available on the date that the file was posted.
The file is stored on security-enhanced servers that help to prevent any
unauthorized changes to the file.
<br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">CD-ROM: Assessment qurestion scored
incorrectly</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>In the Lesson Review on the CD-ROM, one of the questions is
scored incorrectly. <br><br>The question reads:

<br>"You are writing an application that needs to perform processing that will run
for several hours. However, you need the application to remain responsive to the
user during that time, so you are using multiple threads. Which of the following
code samples would launch the thread in such a way as to minimize the impact on
the performance of other applications? (Choose all that apply.)"

<br><br>When the question is scored, one of the answers is marked correct, though
it should be marked incorrect. <br><br>The answer reads:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">'VB
Dim myThreadDelegate As New ThreadStart(AddressOf ThreasWork.DoWork)
Dim mtThread As New Thread(myThreadDelegate)
myThread.StartLowPriority()

// C#
ThreadStart myThreadDelegate = new ThreadStart(ThreadWork.DoWork);
Thread myThread = new Thread(myThreadDelegate);
myThread.StartLowPriority();</pre></code></div></div><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 3: System.Value
referenced rather than System.ValueType</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 3, the first sentence after the first bulleted list
reads:

<br><br>"Each of these types is derived from the System.Value base type."

<br><br>It should read:

<br><br>"Each of these types is derived from the System.ValueType base type."


<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 5: Date/date should be
Date/none</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 5, the first cell of the last row of Table 1-2 is
incorrect.

<br><br>Change:
<br>"System.DateTime
(Date/date)"

<br><br>To:
<br>"System.DateTime
(Date/none)"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 5: 4 should be 1</h3><script
type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 5, the Bytes column of the second row of Table 1-2 is
incorrect.

<br><br>Change:
<br>"4"

<br><br>To:
<br>"1"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 9: NOTE is incorrect</h3><script
type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 9, the NOTE reads:

<br><br>"NOTE .NET 2.0


<br>The Operator keyword is new in .NET 2.0."
<br><br>This is incorrect and the note should be disregarded.<br><br><div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 12: Term "defines" used in place of
"initializes" in step 4</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 12, the first sentence of step 4
reads:<br><br>"Create a constructor that defines all three member variables, as
the following
code demonstrates:"<br><br>It should read:<br><br>"Create a constructor that
initializes all three member variables, as the following
code demonstrates:"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 14: Term "class" used in place of term
"structure" in step 5</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 14, the first sentence of step 5 reads:

<br><br>"Modify your Main code to properly construct an instance of the Person


class, as the following code sample demonstrates:"

<br><br>It should read:

<br><br>"Modify your Main code to properly construct an instance of the Person


structure, as the following code sample demonstrates:"<br><br><div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 18: The word "variable" is missing from
the final sentence</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 18, the last sentence on the page reads:

<br><br>"When you modify a reference type, you modify all copies of that reference
type."

<br><br>It should read:

<br><br>"When you modify a reference type variable, you modify all copies of that
reference type variable."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 24: C# code sample missing</h3><script
type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 24, the following code sample should be added
directly below the VB code sample:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">// C#

try
{
StreamReader sr = new StreamReader("text.txt");
Console.WriteLine(sr.ReadToEnd);
}

catch (System.IO.FileNotFoundException ex)


{
Console.WriteLine("The file could not be found.");
}

catch (System.UnauthorizedAccessException ex)


{
Console.WriteLine("You do not have sufficient permissions.");
}

catch (Exception ex)


{
Console.WriteLine("Error reading file: " + ex.Message);
}</pre></code></div></div><br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 25: Incorrect code in C#
example</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 25, the first three lines of the VB code sample read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">Dim sr As StreamReader = New StreamReader("text.txt")
Try
Console.WriteLine(sr.ReadToEnd)</pre></code></div></div><br>They should
read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">Dim sr As StreamReader
Try
sr = New StreamReader("text.txt")
Console.WriteLine(sr.ReadToEnd)"</pre></code></div></div><br>

The first three lines of the C# code sample read:<br><div class="kb_codebody"><div


class="kb_codecontent"><code><pre class="code">"StreamReader sr = new
StreamReader("text.txt");
try
{
Console.WriteLine(sr.ReadToEnd());"</pre></code></div></div><br>

They should read:

<br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">"StreamReader sr;
try
{
sr = new StreamReader("text.txt");
Console.WriteLine(sr.ReadToEnd());</pre></code></div></div><br><div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 46: Correction in code
example</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 46, the C# code example under the third bullet point
is incorrect.

<br><br>Change:<br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">// C#
MyEventHandler handler = MyEvent;
EventArgs e = new EventArgs();

if (handler != null)
{
// Invokes the delegates.
handler(this, e);
}
// Note that C# checks to determine whether handler is null.
// This is not necessary in Visual Basic</pre></code></div></div><br>To:

<br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">// C#
EventArgs e = new EventArgs();

if (MyEvent != null)
{
// Invokes the delegates.
MyEvent(this, e);
}
// Note that C# checks to determine whether handler is null.
// This is not necessary in Visual Basic
</pre></code></div></div><br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 47: "Guide" used in place of
"Guid"</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 47, the first sentence of the second paragraph from
the bottom contains an incorrect attribute.

<br><br>Change:

<br>"Visual Studio automatically creates some standard attributes for your


assembly when you create a project, including a title, description, company,
guide, and version."

<br><br>To:

<br>"Visual Studio automatically creates some standard attributes for your


assembly when you create a project, including a title, description, company, guid,
and version."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 49: Invalid character in VB code
sample</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 49, the VB code sample contains an invalid bracket
character.

<br><br>Change:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">' VB
Imports System.Runtime.CompilerServices
&lt;Assembly:TypeForwardedTo(GetType(DestLib.TypeA))]&gt;</pre></code></div></div>
<br>To:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">' VB
Imports System.Runtime.CompilerServices
&lt;Assembly:TypeForwardedTo(GetType(DestLib.TypeA))&gt;</pre></code></div></div><
br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 49: VB code sample missing Person
class</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 49, the second VB code sample near the bottom of the
page is missing "Inherits Person".

<br><br>Change:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">' VB
Class Manager
End Class</pre></code></div></div><br>To:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">' VB
Class Manager : Inherits Person
End Class</pre></code></div></div><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 51: Methods incorrectly
named</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 51, in step 4 the code samples read:<br><br><div
class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">'VB
Private Sub Form1_Shown(ByVal sender As System.Object, ByVal e As
System.EventArgs) _'

and

//C#
private void Timer_Shown(object sender, EventArgs
e)</pre></code></div></div><br><br>They should read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">'VB
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
_'

and

//C#
private void Form1_Load(object sender, EventArgs
e)</pre></code></div></div><br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 52: "progressBar" used in place of
"progressBar1" in code sample</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 52, a 1 needs to be added to "progressBar" in the
first C# code sample at the top of the page.

<br><br>Change:

<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">// C#


void t_Tick(object sender, EventArgs e)
{
progressBar.Value += 10;
if (progressBar.Value &gt;= 100)
t.Stop();
}</pre></code></div></div><br>To:

<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">// C#


void t_Tick(object sender, EventArgs e)
{
progressBar1.Value += 10;
if (progressBar1.Value &gt;= 100)
t.Stop();
}</pre></code></div></div><br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 55: Incorrect description of narrowing
conversion behavior</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 55, the sentence at the bottom of the page reads:

<br><br>"Narrowing conversions fail if the source value exceeds the destination


type's range or if a conversion between the types is not defined, so you should
enclose a narrowing conversion in Try blocks or use TryCast or TryParse and check
the return value."

<br><br>It should read:

<br><br>"Narrowing conversions may return an incorrect result if the source value


exceeds the destination type's range. If a conversion between the types is not
defined you will receive a compile-time error."<br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 58: Incorrect index used
in the second code sample</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 58, the last line of the second VB code sample reads:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">Console.WriteLine("a = {0}, i = {0}", a.ToString,
i.ToString)</pre></code></div></div><br>It should read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">Console.WriteLine("a = {0}, i = {1}", a.ToString,
i.ToString)</pre></code></div></div><br>The last line of the C# code sample reads:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">Console.WriteLine("a = {0}, i = {0}", a.ToString(),
i.ToString());</pre></code></div></div><br>It should read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">Console.WriteLine("a = {0}, i = {1}", a.ToString(),
i.ToString());</pre></code></div></div><br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 59: Decimal used in place
of Double in code for Exercise 1</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 59, in the third line of VB code in the second step
of Exercise 1 reads:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">Dim db As Decimal = 1</pre></code></div></div><br>It should read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">Dim db As Double = 1</pre></code></div></div><br><br><div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 63: "narrowing" used in place of
"widening"</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 63, the third sentence of the first paragraph reads:
<br><br>"C# allows implicit conversion for only narrowing conversions, where no
information could be lost."

<br><br>It should read:

<br><br>"C# allows implicit conversion for only widening conversions, where no


information could be lost."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 72: "Exist property" referenced in place
of "Exists property"</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 72, the first sentence after the bulleted list reads:

<br><br>"For example, you can check whether a file exists by calling the FileInfo
object’s Exist property, as shown in the following code:"

<br><br>It should read:

<br><br>"For example, you can check whether a file exists by calling the FileInfo
object’s Exists property, as shown in the following code:"<br><br><div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 73: string should be DirectoryInfo
object</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 73, the Description of Root in Table 2-5 is
incorrect.

<br><br>Change:
<br>"Gets the root part of the directory’s path as a string"

<br><br>To:
<br>"Gets the root part of the directory’s path as a DirectoryInfo
object"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 74: DriveInfo class described
incorrectly</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 74, the first sentence under the DriveInfo class
section reads:

<br><br>“The DriveInfo class provides the basic functionality to access and


manipulate a single directory in the file system.”

<br><br>It should read:

<br><br>"The DriveInfo class models a drive and provides methods and properties to
query for drive information. Use DriveInfo to determine what drives are available,
and what type of drives they are. You can also query to determine the capacity and
available free space on the drive."
<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 76: Unknown member description is
missing the word "type"</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 76, the description of the Unknown member in Table 2-
9 reads:
<br><br>"The drive could not be determined."

<br><br>It should read:

<br><br>"The drive type could not be determined."<br><br><div class="topOfPage"><a


href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 76: Procedure said to
access rather than enumerate drives</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 76, the first sentence of the How to Enumerate Drives
section reads:

<br><br>"You follow this procedure to access the drives in a system:"

<br><br>It should read:

<br><br>"You follow this procedure to enumerate all the drives in a


system:"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 81: The term "Added" is used in place of
"Created, Deleted"</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 81, the first sentence of the second paragraph reads:

<br><br>"In addition to using the Added and Changed events, you can monitor the
system for renamed files."

<br><br>It should read:

<br><br>"In addition to using the Created, Deleted and Changed events, you can
monitor the system for renamed files."<br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 83: Drive referred to in
place of folder</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 83, the first sentence of Excercise 1 reads:

<br><br>"In this exercise, you will enumerate through all the files in a
particular drive."

<br><br>It should read:

<br><br>"In this exercise, you will enumerate through all the files in a
particular folder."
<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 83: The term "include" used in place of
"using" in Step 2</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 83, step 2 reads:<br><br>"Add an Import (or an
include in C#) for the System.IO namespace into the new project."

<br><br>It should read:

<br><br>"Add an Import (or aa using statement in C#) for the System.IO namespace
into the new project."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 84: Incorrect direction in step
6</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 84, the first sentence of step 6 reads:

<br><br>"In the Main method, write code to create a new instance of a


DirectoryInfo object for the Windows directory and use it to call the new
ShowDirectory method."

<br><br>It should read:

<br><br>"In the Main method, write code to create a new instance of a


DirectoryInfo class for the System directory and use it to call the new
ShowDirectory method."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 85: EnableRaisingEvents property
referred to as EnablingRaisingEvents</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 85, step 7 reads:

<br><br>"Set the EnablingRaisingEvents property to true to tell the watcher object


to start throwing events."

<br><br>It should read:

<br><br>"Set the EnableRaisingEvents property to true to tell the watcher object


to start throwing events."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 89, Incorrect namespaces used in stream
types.</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 89, the 3rd, 4th and 5th bullet points read:

<br><br>"* CryptoStream (System.Security)


<br>* NetworkStream (System.Net)
<br>* GZipStream (System.Compression)"

<br><br>They should read:

<br><br>"* CryptoStream (System.Security.Cryptography)


<br>* NetworkStream (System.Net.Sockets)
<br>* GZipStream (System.IO.Compression)"<br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 91: Suggestion that files
can be created when read</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 91, the first bullet point reads:

<br><br>"Operations to create or open files for reading"

<br><br>It should read:

<br><br>"Operations to open files for reading"<br><br><div class="topOfPage"><a


href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 92: Incorrect description
of the functionality of the Directory class</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 92, the second sentence of the Directory Class
section reads:

<br><br>"The Directory class provides the basic functionality to open file streams
for reading and writing."

<br><br>It should read:

<br><br>"The Directory class provides the basic functionality to create, manage,


delete, and analyze directories."<br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 92: Description of
OpenWrite method is incorrect</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 92, the Description for the OpenWrite method reads:

<br><br>"Opens an existing file for writing and returns a StreamWriter object."

<br><br>It should read:

<br><br>"Opens an existing file for writing and returns a FileStream


object."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 97: "read" used in place of
"write"</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 97, the first sentence of the first paragraph
reads:<br><br>"The StreamReader class provides the basic functionality to write
data from a Stream derived class."<br><br>It should read:

<br><br>"The StreamReader class provides the basic functionality to read data from
a Stream derived class."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 100, Incorrect basic functionality
description of StreamWriter class</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 100, the first sentence of the first paragraph reads:

<br><br>"The StreamWriter class provides the basic functionality to read data from
a Stream derived class."

<br><br>It should read:

<br><br>"The StreamWriter class provides the basic functionality to write data


from a Stream derived class."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 104: Incorrect description of the
behavior of the sample code</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 104, the last sentence on the page reads:

<br><br>"For example, the following code will read the code just shown:"

<br><br>It should read:

<br><br>"For example, the following code will read the data written by the code
just shown:"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 111: The term "include" used in place of
"using" in Step 2</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 111, step 2 reads:<br><br>"Add an Import (or an
include in C#) for the System.IO namespace into the new project."

<br><br>It should read:

<br><br>"Add an Import (or aa using statement in C#) for the System.IO namespace
into the new project."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 111: Incorrect instruction in step 3 of
Excercise 1</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 111, step 3 of Exercise 1 reads:

<br><br>"In the Main method, create a new StreamWriter from the Create method of
the File class."

<br><br>It should read:

<br><br>"In the Main method, create a new StreamWriter by calling the CreateText
method of the File class."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 112: Class referred to in place of
object</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 112, step 2 of Exercise 2 reads:

<br><br>"In the Main method after the StreamWriter class is closed, open the file
using the OpenText method of the File class to create a new StreamReader object."

<br><br>It should read:

<br><br>"In the Main method after the StreamWriter object is closed, open the file
using the OpenText method of the File class to create a new StreamReader
object."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 115: The descriptions of the CanRead
property is incorrect</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 115, the description of the CanRead property in Table
2-30 reads:

<br><br>"Determines whether the stream supports reading while decompressing a


file. (Inherited from the Stream class.)"

<br><br>It should read:

<br><br>"Determines whether the stream supports reading. (Inherited from the


Stream class.)"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 120: CompressionMode.Compress used in
place of CompressionMode.Decompress</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 120, the first full code sample read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">' VB
Dim compStream As _
New GZipStream(sourceFile, CompressionMode.Compress)

// C#
GZipStream compStream =
new GZipStream(sourceFile,
CompressionMode.Compress);</pre></code></div></div><br>It should read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">' VB
Dim compStream As _
New GZipStream(sourceFile, CompressionMode.Decompress)

// C#
GZipStream compStream =
new GZipStream(sourceFile,
CompressionMode.Decompress);</pre></code></div></div><br><br><div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 121: The term "include" used in place of
"using" in Step 2</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 121, step 2 reads:<br><br>"Add an Import (or an
include in C#) for the System.IO namespace into the new project."

<br><br>It should read:

<br><br>"Add an Import (or aa using statement in C#) for the System.IO namespace
into the new project."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Pages 121 &amp; 122: Code samples are
incorrect for Step 7</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On pages 121 &amp; 122, Exercise 1, Step 7, the VB and C#
code samples are incorrect. When used in the exercise, they do not create a
smaller compressed file.

<br><br>Change:

<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">' VB


Dim theByte As Integer = sourceFile.ReadByte()
While theByte &lt;&gt; -1
compStream.WriteByte(CType(theByte, Byte))
theByte = sourceFile.ReadByte()
End While

// C#
int theByte = sourceFile.ReadByte();
while (theByte != -1)
{
compStream.WriteByte((byte)theByte);
theByte = sourceFile.ReadByte();
}</pre></code></div></div><br>To:

<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">' VB


Dim buffer(sourceFile.Length) As Byte
sourceFile.Read(buffer, 0, buffer.Length)
compStream.Write(buffer, 0, buffer.Length)
// C#
const int buf_size = 4096;
byte[] buffer = new byte[buf_size];
int bytes_read = 0;
do
{
bytes_read = sourceFile.Read(buffer,0,buf_size);
compStream.Write(buffer,0,bytes_read);
} while (bytes_read != 0);</pre></code></div></div><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 122: Additional note
needs to be added for step 9.</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On Page 122, Step 9 an addition NOTE needs to be added
before the code sample for more information:

<br><br>"NOTE: Using a small file may result in the compressed file being larger
than the original because of the overhead of compression. If you use a larger
file, the size of the overhead will not cause such a pallor on the size of the
resulting file."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 127: Term "file" used in place of
"directory"</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 127, the description of GetDirectoryNames in Table 2-
36 reads:

<br><br>"Gets a list of directory names within the store that match a file mask"

<br><br>It should read:

<br><br>"Gets a list of directory names within the store that match a directory
mask"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 129: Incorrect definition for
IsolatedStorageFileStream</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 129, the first sentence of the first paragraph reads:

<br><br>"The IsolatedStorageFileStream class encapsulates a stream that is used to


create files in isolated storage."

<br><br>It should read:

<br><br>"The IsolatedStorageFileStream class encapsulates a stream that is used to


read, write and create files in isolated storage."<br><br><div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 133: Files referenced in place of
directories</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 133, the paragraph before the final code sample
reads:

<br><br>"Directories are treated much like files in that to test for their
existence, you must use a method that returns an array of strings that match a
file mask. The GetDirectoryNames method of the IsolatedStorageFile class allows
you to find an existing file before you try to create it:"

<br><br>It should read:

<br><br>"Directories are treated much like files in that to test for their
existence, you must use a method that returns an array of strings that match a
mask. The GetDirectoryNames method of the IsolatedStorageFile class allows you to
find an existing directory before you try to create it:"<br><br><div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 135: The term "include" used in place of
"using" in Step 2</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 135, step 2 reads:<br><br>"Add an Import (or an
include in C#) for the System.IO namespace into the new project."

<br><br>It should read:

<br><br>"Add an Import (or aa using statement in C#) for the System.IO namespace
into the new project."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 135: Object referenced in place of
class</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 135, the first sentence of step 3 in Exercise 1
reads:

<br><br>"In the Main method of the new project, create a new instance of the
IsolatedStorageFile object named userStore that is scoped to the current user and
assembly."

<br><br>It should read:

<br><br>"In the Main method of the new project, create a new instance of the
IsolatedStorageFile class named userStore that is scoped to the current user and
assembly."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 135: Incorrect Visual Basic code in step
3</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 135, the Visual Basic code in step 3 reads:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">' VB
IsolatedStorageFile userStore = _
IsolatedStorageFile.GetUserStoreForAssembly()</pre></code></div></div><br>It
should read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">' VB
Dim userStore as IsolatedStorageFile = _
IsolatedStorageFile.GetUserStoreForAssembly()</pre></code></div></div><br><br>
<div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 136: Incorrect Visual Basic code in
steps 4 and 5</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 136, the Visual Basic code in step 4 reads:
<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre
class="code">' VB
IsolatedStorageFileStream userStream = new _
IsolatedStorageFileStream("UserSettings.set", _
FileMode.Create, _
userStore)

</pre></code></div></div><br>It should read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">' VB
Dim userStream as IsolatedStorageFileStream = new _
IsolatedStorageFileStream("UserSettings.set", _
FileMode.Create, _
userStore)</pre></code></div></div><br><br>The code
in step 5 reads:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">' VB
StreamWriter userWriter = new StreamWriter(userStream)
userWriter.WriteLine("User Prefs")
userWriter.Close()

</pre></code></div></div><br>It should read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">' VB
Dim userWriter as new StreamWriter(userStream)
userWriter.WriteLine("User Prefs")
userWriter.Close()</pre></code></div></div><br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 137: Sample code
missing</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 137, the fifth line of the first section of sample
code reads:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">// ...</pre></code></div></div><br>It should read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">Console.WriteLine("No data saved for this
user.");</pre></code></div></div><br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 139: Clarification of
data in 4th bullet down under Chapter Summary</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 139, fourth bullet down under Chapter Summary it
reads:

<br><br>"The StreamReader and StreamWriter classes are instrumental in dealing


with moving data into and out of streams, including FileStreams, MemoryStreams,
and IsolatedStorageFileStreams."

<br><br>It should read:

<br><br>"The StreamReader and StreamWriter classes are instrumental in dealing


with moving textoriented data into and out of streams, including FileStreams,
MemoryStreams, and IsolatedStorageFileStreams."<br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 140: Incorrect
description of Case Scenarios</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 140, the first sentence of the Case Scenarios section
reads:

<br><br>"In the following case scenarios, you will apply what you’ve learned about
how to use application domains and services."

<br><br>It should read:

<br><br>"In the following case scenarios, you will apply what you’ve learned about
files and directories."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 141: Machine-level data referred to as
assembly data</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 141, the Create a Simple Configuration Storage
section reads:

<br><br>"For this task, you should complete at least Practices 1 and 2. To


understand how user and assembly data differ in isolated storage, complete
Practice 3 as well.

<br><br>- Practice 1 Create a Windows Forms application that allows users to save
data and store it in isolated storage.
<br>- Practice 2 Test the Windows Forms application by running it under different
user accounts.
<br>- Practice 3 Modify the application to store some assembly-level data to see
whether that data is the same for all users."

<br><br>It should read:

<br><br>"For this task, you should complete at least Practices 1 and 2. To


understand how user and machine-level data differ in isolated storage, complete
Practice 3 as well.

<br><br>- Practice 1 Create a Windows Forms application that allows users to save
data and store it in isolated storage.
<br>- Practice 2 Test the Windows Forms application by running it under different
user accounts.
<br>- Practice 3 Modify the application to store some machine-level data to see
whether that data is the same for all users."<br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Pages 145 &amp; 146: Argument
location is reversed</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 145, line 7 of the VB code example and on page 146
line 11 of the C# code example contain incorrect argument locations.

<br><br>Change (page 145 VB):


<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">If
Regex.IsMatch(args(1),args(0)) Then</pre></code></div></div><br>To:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">If
Regex.IsMatch(args(0),args(1)) Then</pre></code></div></div><br>Change (page 146
C#):
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">if
(Regex.IsMatch(args[1], args[0]))</pre></code></div></div><br>To:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">if
(Regex.IsMatch(args[0], args[1]))</pre></code></div></div><br><div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 146: TestRegExp command arguments
partially incorrect</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 146, the two command line and expected output samples
under the 1st paragraph are partially incorrect.

<br><br>Change:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre
class="code">C:\&gt;TestRegExp ^\d{5}$ 1234</pre></code></div></div>
Input DOES NOT match regular expression.

<br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">C:\&gt;TestRegExp ^\d{5}$ 12345</pre></code></div></div>
Input matches regular expression.

<br><br>To:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre
class="code">C:\TestRegExp 1234 ^^\d{5}$</pre></code></div></div>
Input DOES NOT match regular expression.
<br>(Note: You need to add another ^ because the command line interprets ^ as an
escape character. The second ^ is not necessary when adding command line arguments
directly through the Visual Studio Command Line Project Properties - Debug -
Command Line arguments.)

<br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">C:\TestRegExp 12345 ^^\d{5}$</pre></code></div></div>
Input matches regular expression.<br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 165: IsZip method
mentioned in place of ReformatPhone method</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 165, the last sentence before the code sample in step
3 of Exercise 2 reads:

<br><br>"Though many different regular expressions would work, the IsZip method
you write could look like this:"

<br><br>It should read:

<br><br>"Though many different regular expressions would work, the ReformatPhone


method you write could look like this:"<br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 170: "E." should be
removed from answer E</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 170, Question 4, Answer E reads:

<br><br>"E. amomomottohez"

<br><br>It should read:


<br><br>"amomomottohez"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 187: "or index" should be
removed</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 187, there are errors in the descriptions of
Hashtable and StringDictionary.

<br><br>Change:
<br>"Hashtable A collection of name/value pairs of objects that allows retrieval
by name or index"

<br><br>To:
<br>"Hashtable A collection of name/value pairs of objects that allows retrieval
by name"

<br><br>Change:
<br>"StringDictionary A collection of name/values pairs of strings that allows
retrieval by name or index"

<br><br>To:
<br>"StringDictionary A collection of name/values pairs of strings that allows
retrieval by name"<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 188: Class referenced in place of
collection</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 188, the second sentence of the Adding and Removing
Items section reads:

<br><br>"Adding items to and removing items from the class is very


straightforward."

<br><br>It should read:

<br><br>"Adding items to and removing items from the collection is very


straightforward."<br><br><div class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><h3 id="tocHeadRef">Page 192: Missing newline in code
sample</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 192, the seventh line of the second code sample
reads:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">// C# IEnumerator enumerator =
coll.GetEnumerator();</pre></code></div></div><br>It should read:

<br><br><div class="kb_codebody"><div class="kb_codecontent"><code><pre


class="code">// C#
IEnumerator enumerator =
coll.GetEnumerator();</pre></code></div></div><br><br><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div><h3 id="tocHeadRef">Page 192: "++x" should be "x+
+"</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On page 192, the second line of the first code sample on the
page is incorrect.
<br><br>Change:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">for
(int x = 0; x &lt; coll.Count; ++x)</pre></code></div></div><br>To:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">for
(int x = 0; x &lt; coll.Count; x++)</pre></code></div></div><br>
Microsoft Press is committed to providing informative and accurate
books. All comments and corrections listed above are ready for
inclusion in future printings of this book. If you have a later printing
of this book, it may already contain most or all of the above corrections.<div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div></div></div><div class="sbody norollup"><div
class="appliesTo"><hr><a id="appliesto"></a><h5>APPLIES TO</h5><ul><li>MCTS Self-
Paced Training Kit (Exam 70-536): Microsoft .NET Framework 2.0 - Application
Development Foundation, ISBN 0-7356-2277-9</li></ul></div><div
class="topOfPage"><a href="#top"><img
src="/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="">Back to
the top</a></div><div class="keywords"><table><tr><td
class="header"><h5>Keywords:
</h5></td><td
class="text">KB923018</td></tr></table></div><div class="topOfPage"><a
href="#top"><img src="/library/images/support/kbgraphics/public/en-us/uparrow.gif"
alt="">Back to the top</a></div></div><!-- - -KB 3 end- - --></div></div><span
class="bookmark"><a id="survey" name="survey">&nbsp;</a></span><div class="wp"
id="fmsSurvey" style="display:none;"><div class="fms"><noscript><div
class="SURVEYNOSCRIPT"></div></noscript><input type="hidden" id="surveyname"
name="surveyname" value=""><input type="hidden" id="showpage" name="showpage"
value="1"><div id="SURVEYSECTIONCONTAINER"><div id="SURVEYSECTION_132"
class="SURVEYSECTION" style="display:none;" xmlns:sw="urn:schemas-microsoft-
com/PSS/PSS_Survey01"><input type="hidden" name="id" value="132"><input
type="hidden" name="CompoundingBranchRules" value=""><input type="hidden"
name="NextSectionByTopicRef" value="0"><div id="SURVEYQUESTION_9089"
class="QUESTIONCONTAINER"><input type="hidden" name="id" value="9089"><input
type="hidden" name="type" value="LABEL"><input type="hidden" name="required"
value="0"><div class="QUESTIONTEXT"><h5>Provide feedback on this
information</h5></div><div class="QUESTIONINSTRUCTION"></div><div
class="QUESTIONREQUIRED"></div></div><div id="SURVEYQUESTION_9088"
class="QUESTIONCONTAINER"><input type="hidden" name="id" value="9088"><input
type="hidden" name="type" value="CHOICE"><input type="hidden" name="required"
value="0"><div class="QUESTIONTEXT">Did this information solve your problem?
</div><div class="QUESTIONINSTRUCTION"></div><div
class="QUESTIONREQUIRED"></div><input type="hidden" name="randomization"
value=""><table cellspacing="0" cellpadding="0" border="0"><tr><td
valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td
valign="top" class="CHOICEROW"><input type="radio" name="QUESTION_132_90889088"
id="14471" value="0"></td><td
class="ANSWERTEXT">Yes</td></tr></table></td></tr><tr><td valign="top"><table
cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"
class="CHOICEROW"><input type="radio" name="QUESTION_132_90889088" id="14472"
value="1"></td><td class="ANSWERTEXT">No</td></tr></table></td></tr><tr><td
valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td
valign="top" class="CHOICEROW"><input type="radio" name="QUESTION_132_90889088"
id="14473" value="2"></td><td class="ANSWERTEXT">I don't
know</td></tr></table></td></tr></table></div><div id="SURVEYQUESTION_9086"
class="QUESTIONCONTAINER"><input type="hidden" name="id" value="9086"><input
type="hidden" name="type" value="CHOICE"><input type="hidden" name="required"
value="0"><div class="QUESTIONTEXT">Was this information relevant?</div><div
class="QUESTIONINSTRUCTION"></div><div class="QUESTIONREQUIRED"></div><input
type="hidden" name="randomization" value=""><table cellspacing="0" cellpadding="0"
border="0"><tr><td valign="top"><table cellspacing="0" cellpadding="0"
border="0"><tr><td valign="top" class="CHOICEROW"><input type="radio"
name="QUESTION_132_90869086" id="14471" value="0"></td><td
class="ANSWERTEXT">Yes</td></tr></table></td></tr><tr><td valign="top"><table
cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"
class="CHOICEROW"><input type="radio" name="QUESTION_132_90869086" id="14472"
value="1"></td><td
class="ANSWERTEXT">No</td></tr></table></td></tr></table></div><div
id="SURVEYQUESTION_9087" class="QUESTIONCONTAINER"><input type="hidden" name="id"
value="9087"><input type="hidden" name="type" value="TEXT-BLOCK"><input
type="hidden" name="required" value="0"><div class="QUESTIONTEXT">What can we do
to improve this information?</div><div class="QUESTIONINSTRUCTION"></div><div
class="QUESTIONREQUIRED"></div><textarea class="ANSWERBOX" name="TEXTBLOCK_9087"
rows="6" cols="80" onpaste="enforceMaxLength(this,500,event)"
onkeydown="enforceMaxLength(this,500,event)"></textarea></div><div
id="SURVEYQUESTION_7813" class="QUESTIONCONTAINER"><input type="hidden" name="id"
value="7813"><input type="hidden" name="type" value="LABEL"><input type="hidden"
name="required" value="0"><div class="QUESTIONTEXT">To protect your privacy, do
not include contact information in your feedback.</div><div
class="QUESTIONINSTRUCTION"></div><div class="QUESTIONREQUIRED"></div></div><div
class="NAVIGATION"><table class="NAVBUTTONCONTAINER"><tr><td
class="PADDINGCELL"></td><td class="NAVBUTTONCELL"><input class="NAVBUTTON"
type="button" value="Submit" onclick="kbSurvey.next();this.blur();"></td><td
class="ENDPADDINGCELL"></td></tr></table></div></div><div ID="DIV_CLOSE"
style="display:none" xmlns:sw="urn:schemas-microsoft-com/PSS/PSS_Survey01"><div
class="SURVEYTHANKYOUCONTAINER"><div class="SURVEYINTROTEXT">Thank you! Your
feedback is used to help us improve our support content. For more assistance
options, please visit the <a href="http://support.microsoft.com">Help and Support
Home Page</a>.</div></div><div class="NAVIGATION"><table
class="NAVBUTTONCONTAINER" nowrap="yes"><tr><td class="PADDINGCELL"></td><td
class="NAVBUTTONCELL"></td><td
class="ENDPADDINGCELL"></td></tr></table></div></div></div></div></div><script
type="text/javascript">
var kbSurvey = new MS.Support.Fms.Survey("fmsSurvey");
kbSurvey.isKBEmbedded = true;
kbSurvey.addSubmitField('REGIONID', 'en-us');
kbSurvey.addSubmitField('SITE', 'gn');
kbSurvey.addSubmitField('SURVEYSCID', 'sw;en;1496');
kbSurvey.addSubmitField('SURVEYID', '1496');
kbSurvey.addSubmitField('SURVEYNAME', '');
kbSurvey.addSubmitField('BROWSERLANGCODE', '');
kbSurvey.addSubmitField('SURVEYLANGCODE', 'en');
kbSurvey.addSubmitField('FMSURL', '%252fdefault.aspx%252fkb
%252f923018');
kbSurvey.parameters = ['kb','en-
us','923018','','','','','','',''];
kbSurvey.maxKBsInCookie = '10';
kbSurvey.kbvisited = '';
</script></div></td><td class="primaryThinColumn"><div id="thinColumn"
style="float: none;"><div class="wp getHelp"><table align="center" cellpadding="0"
cellspacing="0"><tr><td class="image"><a href="/gethelp/default.aspx?
content=kb;en-us;923018" id="L_174092"><img alt=""
src="/library/images/support/en-US/Help_support_55.gif" /></a></td><td
class="text"><h3>Get Help Now</h3><a href="/gethelp/default.aspx?content=kb;en-
us;923018" id="L_174092">Contact a support professional by E-mail, Online, or
Phone</a></td></tr></table></div><div class="wp articleTrans"><h3><span
class="linkCon">Article Translations</span><span
class="linkConTop"></span></h3><form name="frmArticleTrans" action="/"
onsubmit="return SwitchLanguage(29803);"><div><table cellpadding="0"
cellspacing="0"><tr><td><select name="scid"><option
value="kb;ar;923018">Arabic</option><option
value="kb;fr;923018">French</option><option
value="kb;de;923018">German</option><option
value="kb;it;923018">Italian</option><option
value="kb;ja;923018">Japanese</option><option
value="kb;ko;923018">Korean</option><option value="kb;pt-br;923018">Portuguese
(Brazil)</option><option value="kb;pt;923018">Portuguese
(Portugal)</option><option value="kb;zh-cn;923018">Simplified
Chinese</option><option value="kb;es;923018">Spanish</option><option value="kb;zh-
tw;923018">Traditional Chinese</option></select></td><td
class="spacer">&nbsp;</td><td><input type="image" alt="Translate the article"
style="width: 24;height: 24;" onmouseover="this.src='/library/images/support/EN-
US/go_right_02-over.gif';" onmouseout="this.src='/library/images/support/en-
US/GSSSM_rltlngRelatedlanguages.gif';" src="/library/images/support/en-
US/GSSSM_rltlngRelatedlanguages.gif" /><a id="KBLangListRedirect" href=""
/></td></tr></table></div></form></div><div id="divRelContent"
style="display:none"></div><div id="divRelTags" style="display:none"></div><div
class="wp" id="SupportTools"><table cellspacing="0" class="LCT"><tr><td
class="textColumn"><h3><span class="linkCon">Page Tools</span><span
class="linkConTop"></span></h3><ul><li id="PrintPage_tr"><span><a
href="/gp/noscript" id="PrintPage" title="Print this page" onclick="return
MS_HandleClick(this,'SupportTools', true);">Print this page</a></span></li><li
id="EmailPage_tr"><span><a href="mailto:?subject=MCTS%20Self-Paced%20Training
%20Kit%20%28Exam%2070-536%29%3a%20Microsoft%u00ae%20.NET%20Framework
%202.0%u2014Application%20Development%20Foundation%20comments%20and%20corrections
%20Part%201&amp;body=http%3a%2f%2fsupport.microsoft.com%2fdefault.aspx%2fkb
%2f923018" id="EmailPage" title="E-mail this page" onclick="return
MS_HandleClick(this,'SupportTools', true);">E-mail this
page</a></span></li></ul></td></tr></table></div></div></td></tr></table></div></d
iv><div id="bottomRow"><div class="wp getHelp"><table align="center"
cellpadding="0" cellspacing="0"><tr><td class="image"><a
href="/gethelp/default.aspx?content=kb;en-us;923018" id="L_174092"><img alt=""
src="/library/images/support/en-US/Help_support_55.gif" /></a></td><td
class="text"><h3>Get Help Now</h3><a href="/gethelp/default.aspx?content=kb;en-
us;923018" id="L_174092">Contact a support professional by E-mail, Online, or
Phone</a></td></tr></table></div></div>

</div>
</div>

<div id="gsfx_brnd_BottomCorners" class="gsfx_brnd_CornerContainer">


<div class="gsfx_brnd_TBBorders gsfx_brnd_TransBG"
id="gsfx_brnd_BottomBorder"></div>
<div class="gsfx_brnd_Corner" id="gsfx_brnd_LLowerCorner"></div>
</div>

<div id="gsfx_brnd_WidthFix"></div>

<div id="gsfx_brnd_FooterContainer">
<div id="gsfx_brnd_SiteFooter" class="gsfx_brnd_NetworkLeft">
Microsoft Support
</div>

<table id="gsfx_brnd_NetworkFooter"
class="gsfx_brnd_NetworkRight"><tr>
<td id="gsfx_brnd_FooterLinkContainer">
<!--Table is wrapped in a div tag to facilitate proper
alignment and stacking-->
<div class="gsfx_brnd_FooterLinks"
id="gsfx_brnd_SiteFooterLinks">
<!--Table is used here in order to properly order the
links for LTR and RTL while maintaining the correct tab order-->

<table summary="Site Footer Links"


class="gsfx_brnd_NetworkRight"><tr><td class="gsfx_brnd_NetworkLinkContainer
gsfx_brnd_NetworkLink"><a
href="javascript:window.open('http://mymfe.microsoft.com/support.microsoft.com/fee
dback.aspx?formid=24' + '&UrlReferrer=' + escape(document.referrer.toString()),
'Feedback',
'scrollbars=yes,menubar=no,titlebar=no,location=no,width=500,height=600,resizable=
yes');void(0);" id="L_184649"><span>Feedback</span></a></td><td
class="gsfx_brnd_NetworkLinkContainer gsfx_brnd_FooterSeperator">|</td><td
class="gsfx_brnd_NetworkLinkContainer gsfx_brnd_NetworkLink"><a href="/gp/csa"
id="L_157327"><span>Services Agreement</span></a></td></tr></table>

</div>

<!--Table is wrapped in a div tag to facilitate proper


alignment and stacking-->
<div class="gsfx_brnd_FooterLinks"
id="gsfx_brnd_NetworkFooterLinks">
<!--Table is used here in order to properly order the
links for LTR and RTL while maintaining the correct tab order-->
<table summary="Network Footer Links"
class="gsfx_brnd_NetworkRight"><tr><td class="gsfx_brnd_NetworkLinkContainer
gsfx_brnd_NetworkLink"><a href="/contactus/?ws=support"
id="L_153553"><span>Contact Us</span></a></td><td
class="gsfx_brnd_NetworkLinkContainer gsfx_brnd_FooterSeperator">|</td><td
class="gsfx_brnd_NetworkLinkContainer gsfx_brnd_NetworkLink"><a
href="http://go.microsoft.com/?linkid=4412892" id="L_153554"><span>Terms of
Use</span></a></td><td class="gsfx_brnd_NetworkLinkContainer
gsfx_brnd_FooterSeperator">|</td><td class="gsfx_brnd_NetworkLinkContainer
gsfx_brnd_NetworkLink"><a href="http://go.microsoft.com/?linkid=4412893"
id="L_153555"><span>Trademarks</span></a></td><td
class="gsfx_brnd_NetworkLinkContainer gsfx_brnd_FooterSeperator">|</td><td
class="gsfx_brnd_NetworkLinkContainer gsfx_brnd_NetworkLink"><a
href="http://go.microsoft.com/?linkid=4412894" id="L_153556"><span>Privacy
Statement</span></a></td></tr></table>
</div>
</td>
<td id="gsfx_brnd_copyright_container">
<div id="gsfx_brnd_MSLogoContainer" >
<!--[if lte IE 6]><div
id="gsfx_brnd_legacy_MSLogo"></div><![endif]-->
<img id="gsfx_brnd_MSLogo" alt="Microsoft"
src="/library/images/support/cn/gsfx_brnd_ms_logo_sml_blk.png" />
<img id="gsfx_brnd_MSLogoPrint" alt="Microsoft"
src="/library/images/support/cn/gsfx_brnd_ms_logo_sml_blk.png" />
</div>
<span id="gsfx_brnd_copyright">&copy;2009 Microsoft</span>
</td>
</tr></table>
</div>
</div>
</div>
</div>
<style type="text/css">
#gsfx_brnd_CenterContent, #gsfx_brnd_PageWrapper
{
background: url('') repeat-x bottom;
}
</style>
<script type="text/javascript" src="/common/script/gsfx/branding.js?
27"></script><script type="text/javascript" src="/common/script/gsfx/wtInit.js?
27"></script><script type="text/javascript" src="/common/script/gsfx/wtCore.js?
27"></script><noscript><img alt="" id="DCSIMG" width="1" height="1"
src="http://m.webtrends.com/dcsxia05c00000s926v0z4tru_3w4l/njs.gif?
dcsuri=/nojavascript&WT.js=No" /></noscript><img id="webmetriximg" alt=""
src="/library/images/support/cn/onepix.gif" /><noscript><img
id="StatsDotNetImgNoScript" alt=""
src="http://support.microsoft.com/LTS/default.aspx?
SSID=1&#38;SiteLCID=1033&#38;SsVersion=GSS5.0&#38;SiteCulture=en-
us&#38;ContentCulture=en-us&#38;In404Url=&#38;EventCollectionID=1&#38;URL=
%2fdefault.aspx&#38;ContentType=kb&#38;ContentLCID=1033&#38;ContentID=923018&#38;P
latform=unknown&#38;BrandID=1&#38;ContentProperties=6%3d9%7c7%3d2.23%7c9%3dkbAudDe
veloper%20%7c" /></noscript><img id="StatsDotNetImg" name="StatsDotNetImg" alt=""
src="/library/images/support/cn/onepix.gif" /><script
type="text/javascript">StatsDotNet.disabled=false;StatsDotNet.enableCollTierParams
=true;StatsDotNet.host='http\x3a\x2f\x2fsupport.microsoft.com\x2fLTS\x2fdefault.as
px';StatsDotNet.ssId='1';StatsDotNet.siteLcId='1033';StatsDotNet.SiteCulture='en-
us';StatsDotNet.SsVersion='GSS5.0';StatsDotNet.url='\x2fdefault.aspx';StatsDotNet.
ContentCulture ='en-
us';StatsDotNet.contentType='kb';StatsDotNet.contentLn='1033';StatsDotNet.contentI
d='923018';StatsDotNet.platform='unknown';StatsDotNet.eventCollectionId=1;StatsDot
Net.siteBrandId='1';StatsDotNet.onUnloadTimeout=300;StatsDotNet.ltsIdleTimeout=500
0;StatsDotNet.userAgentString='mozilla\x2f5.0 \x28compatible\x3b
scribdbot\x2f1.0\x3b
\x2bhttp\x3a\x2f\x2fwww.scribd.com\x29';StatsDotNet.ContentProperties='6\x3d9\x7c7
\x3d2.23\x7c9\x3dkbAudDeveloper \x7c';</script><script type="text/javascript">var
enableSiteSurvey = true;function isDomainTracking(){var entry =
MS.Support.Fms.CookieUtil.getCookie('fmshb');if (entry){try{return
entry.split(',')[0] == '1' ? true : false;}catch (e){return false;}}return
false;};window.setInterval(function()
{MS.Support.Fms.CookieUtil.setSessionCookie('fmshb', (isDomainTracking() ? '1' :
'0') + ',' + (new Date()).getTime());}, 1000);function fmsLastExp(){var visits =
MS.Support.Fms.CookieUtil.getCookie('ST_GN_EN-US');var parts = visits ?
visits.split('_') : [];if (null == visits || parts.length != 3 || isNaN(parts[0]))
{return 0;}return parseInt(parts[2]);};function fmsSurveyExpired(days){var MiliDay
= 86400000;var visits = MS.Support.Fms.CookieUtil.getCookie('ST_GN_EN-US');var
parts = visits ? visits.split('_') : [];if (null == visits || parts.length != 3 ||
isNaN(parts[0])){return true;};var origDate = parseInt(parts[1]);var curDate = new
Date();return (curDate.getTime()/MiliDay - days) >= origDate;};function
activateSiteSurvey (){if(window.top == window && !isDomainTracking() &&
typeof(enableSiteSurvey) != "undefined" && enableSiteSurvey &&
fmsSurveyExpired(fmsLastExp())){document.write('<script language="javascript"
src="/library/svy/broker.js"></scr'+'ipt>');}};var triggerEntity =
{CookieDef:'ST_GN_EN-US',Site:'gn',Region:'en-
us',IsRTL:false,Scid:"sw;en;1487",Xsl:"",Path:"/common/survey.aspx",IdValue:
'',EmbedSurveyPrompt:
'nothing',Expiration:90,Delay:0,Frequency:112,SurveyStyle:"popup",DisplayIntroPage
:1,EmailStyle:0,EmailSurveyID:"",ReferringURL:'http\x3a\x2f\x2fsupport.microsoft.c
om\x2fdefault.aspx\x2fkb\x2f923018',Event:"OnUnload",TriggerId:"12105",IntervalTyp
e:"session",Redirect:"",OptOut:0,AnimationDuration:0.5,Parameters:['kb','en-
us','923018','','','','','','',''],Theme:"gn",Toolbar:"",Contains:"sub-
domain",Pages:[],TrackingText:'Thank you for agreeing to participate in the
Microsoft online survey.\u00a0 Please look at the support.microsoft.com Web site
the way you normally would and then come back and answer the survey questions that
will appear in this window.\u00a0 The questions will appear after you leave the
web pages for which Microsoft is seeking your feedback.'};new
MS.Support.Fms.SurveyTrigger(triggerEntity, typeof config != "undefined" ?
config : null);</script><script type="text/javascript">function thisLoad()
{makeAjaxCall('LoadRelatedContent','923018\x3ben-
us');makeAjaxCall('LoadRelatedTags','923018\x3ben-
us');KBFeedBackShowSurvey();CreateSearchOptions('acListWrappergsfx_bsrch_query',
306);SetCatLangPos();InitSrch();InitAC('gsfx_bsrch_query');$
(document).ready(function() {gsfx_bsrch_InitCatSelection('gsfx_bsrch_query',
'4:');});MS_WebMetrix('http\x3a\x2f\x2fc.microsoft.com\x2ftrans_pixel.asp\x3fTYPE\
x3dSSPV\x26SOURCE\x3dSUPPORT\x26GUID\x3d1F4FC18C-F71E-47fb-8FC9-
612F8EE59C61\x26URI\x3d\x252fgn\x252fen-us\x252fkb_en-
us_923018\x26R\x3d');StatsDotNet.LogPageOnLoad();}function thisUnload()
{}</script></body></html>

You might also like