Professional Documents
Culture Documents
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 corrections for this book are availabl
e in article , and . The following topics are&
#32;covered: CD-
ROM: "not" should be removed from assessment&#
32;question CD-
ROM: Assessment answer should include ICollection and&
#32;not IDictionaryEnumerator CD-ROM:..." /><meta
name="Search.QueryWords" content="0-7356-2277-9 978-0-7356-2277-7" /><meta
name="Search.DateModified" content="2007-11-07T21:44:35" /><meta
name="Search.scid" content="kb;en-us;923018" /><meta name="Search.Title"
content="MCTS Self-Paced Training Kit (Exam 70-
536): Microsoft® .NET Framework 2.0—Application
 Development Foundation comments and corrections Part 
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 corrections for this book are availabl
e in article , and . The following topics are&
#32;covered: CD-
ROM: "not" should be removed from assessment&#
32;question CD-
ROM: Assessment answer should include ICollection and&
#32;not IDictionaryEnumerator CD-ROM:..." /><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 (Exam 70-536): Microsoft® .NET Framework
2.0—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: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_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>
<!--/span-->
</div>
</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"> </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"> </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"> </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>
<br><br>Change:
<br><br>To:
<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 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>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>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>"When you modify a reference type, you modify all copies of that reference
type."
<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:
try
{
StreamReader sr = new StreamReader("text.txt");
Console.WriteLine(sr.ReadToEnd);
}
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:
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><br>To:
<br><br>Change:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">' VB
Imports System.Runtime.CompilerServices
<Assembly:TypeForwardedTo(GetType(DestLib.TypeA))]></pre></code></div></div>
<br>To:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre class="code">' VB
Imports System.Runtime.CompilerServices
<Assembly:TypeForwardedTo(GetType(DestLib.TypeA))></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:
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:
<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>"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 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>"In addition to using the Added and Changed events, you can monitor the
system for renamed files."
<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>"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>"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>"The Directory class provides the basic functionality to open file streams
for reading and writing."
<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>"For example, the following code will read the code just shown:"
<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>"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>"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>"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:
// C#
GZipStream compStream =
new GZipStream(sourceFile,
CompressionMode.Compress);</pre></code></div></div><br>It should read:
// 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>"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 & 122: Code samples are
incorrect for Step 7</h3><script type="text/javascript">
loadTOCNode(2, 'moreinformation');
</script>On pages 121 & 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:
// C#
int theByte = sourceFile.ReadByte();
while (theByte != -1)
{
compStream.WriteByte((byte)theByte);
theByte = sourceFile.ReadByte();
}</pre></code></div></div><br>To:
<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>"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>"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>"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>"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>"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>"In the following case scenarios, you will apply what you’ve learned about
how to use application domains and services."
<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>- 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>- 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 & 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:
<div class="kb_codebody"><div class="kb_codecontent"><code><pre
class="code">C:\>TestRegExp ^\d{5}$ 1234</pre></code></div></div>
Input DOES NOT match 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><br>"Though many different regular expressions would work, the IsZip method
you write could look like this:"
<br><br>"E. amomomottohez"
<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:
</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-->
</div>