MCTS self-Paced ????????? ??? (Exam 70 536): Microsoft ® .NET Framework 2.0 ? ????????? ????????? ????????? ?????????? ?? ????? ??? 1

???? ?????? ???? ??????
???? ID: 923018
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

??????

?? ???? ??? ???????, ?????, ?? Microsoft ????? ???????? ?? ??????? ????? ????????? ?? ???? ??? ???????MCTS self-Paced ????????? ??? (Exam 70 536): Microsoft ® .NET Framework 2.0 ? ????????? ????????? ?????????978-0-7356-2277-7??? ???????? ?? ??? ???????? ????? ???? ??? ?????? ???935218,949730, ??949734.

????? ???? ????? ???:

  • CD-ROM ??: "????" ????? ?? ????? assessment ??????
  • CD-ROM: Assessment ????? ????? ???? ????? ICollection ?? IDictionaryEnumerator ????
  • CD-ROM: Assessment ????? ?? ????? ???? ????? ???? ????? ?????
  • CD-ROM: lesson3-exercise1-???????-partial ??? ????? ???????? ??? \Chapter01 ?????? ??
  • CD-ROM ??: scored ??? Assessment qurestion
  • ????? 3: System.Value rather System.ValueType ?? ????????
  • ????? 5: ??????/?????? ???? ????? ?????? / ??? ????
  • ????? 5: 4 1 ???? ?????
  • ????? 9: ????? ??? ???? ??
  • 12 ????? ??: ???? ?? ????? ?? ????? ???? ??? "????????? ???? ??" "initializes" ?? ??? 4
  • ????? 14: ???? "????" ??? 5 ??? "??????" ?? ?? ????? ?? ????? ???? ???? ??
  • ????? 18: ???? "??" ????? ????? ?? ???????? ??
  • ????? 24: C# ??? ????? ???
  • ????? 25: C# ?????? ??? ??? ???
  • 46 ????? ??: ??? ?? ?????? ??? ?????
  • ????? 47: "Guid" ?? ????? ?? "????????????" ?????
  • ????? 49: VB ??? ????? ?????? ????
  • ????? 49: VB ??? ????? ??????? ???? ????????
  • 51 ????? ??: ??? ??? ??? ?? ?????????
  • ????? 52: ??? ????? ??? "progressBar1" ?? ????? "progressBar" ?????
  • ????? 55: ???????? ??????? narrowing ?? ??? ?????
  • ????? 58: ??? ??????????? ????? ??? ????? ??? ????? ???? ???? ??
  • ????? 59: ????? Exercise 1 ?? ??? ??? ??? ????? ?? ????? ?? ????? ????
  • ????? 63: "narrowing" "widening" ?? ????? ?? ????? ???? ???? ??
  • ????? 72: "????? ???" "exists ???" ?? ????? ?? ????????
  • ????? 73: ???????? ???? ????? DirectoryInfo ????????
  • ????? 74: DriveInfo ???? ?? ??? ??? ?? ????? ???? ???
  • ????? 76: ?????? ????? ????? ???????? ?? "??????" ????
  • ????? 76: ??? ?? ????????? ???? ????? ???? ???????? ?? ???? ???? ?? ???
  • ????? 81: ?? "Added" ????? ??? ?? ?? ????? ?? "?????, ???? ??"
  • ????? 83: ?????? ???????? ???? ?? ??? ??????? ?? ????? ??
  • ????? 83: ?? ??? 2 ??? "????? ????" ?? ????? ?? ????? ???? ??? "?????"
  • 84 ????? ??: ??? 6 ??? ??? ????
  • ????? 85: EnableRaisingEvents ??? ???????? EnablingRaisingEvents ?? ??? ???
  • ????? 89, ??? ???????? ??????? ?????? ??? ????? ???? ???? ???
  • ????? 91: ????? ?????? ????? ?? ???? ?? ?????
  • ????? 92: ?????????? ???? ?? ??????????? ?? ??? ?????
  • ????? 92: OpenWrite ?????? ?? ????? ???? ??
  • ????? 97: "?????" "?????" ?? ????? ?? ????? ???? ???? ??
  • ????? 100, StreamWriter ???? ?? ??? ??????????????? ??? ?????
  • ????? 104: ????? ??? ?? ??????? ?? ??? ?????
  • ????? 111: ?? ??? 2 ??? "????? ????" ?? ????? ?? ????? ???? ??? "?????"
  • ????? 111: ??? ??????? ??? 3 ??? Excercise 1
  • ????? 112: ???? ???????? ???????? ?? ????? ??
  • ????? 115: CanRead ??? ?? ????? ???? ??
  • ????? 120: CompressionMode.Compress CompressionMode.Decompress ?? ????? ?? ????? ???? ???? ??
  • ????? 121: ?? ??? 2 ??? "????? ????" ?? ????? ?? ????? ???? ??? "?????"
  • ????? 121 & 122: ??? ????? ??? 7 ?? ??? ???? ??
  • ????? 122, ??? 9: ???????? ??? ????? ?? ??? ?? ???????? ???
  • 127 ????? ??: ???? "?????" "??????????" ?? ????? ?? ????? ???? ???? ??
  • 129 ????? ??: IsolatedStorageFileStream ?? ??? ??? ???????
  • ????? 133: ?????????? ?? ????? ?? ???????? ????
  • ????? 135: ?? ??? 2 ??? "????? ????" ?? ????? ?? ????? ???? ??? "?????"
  • 135 ????? ??: ???????? ???? ?? ????? ?? ????????
  • ????? 135: ??? 3 ??? ??? Visual Basic ???
  • ????? 136: ??? 4 ?? 5 ??? ??? Visual Basic ???
  • ????? 137: Sample ??? ????????
  • ????? 139: ???? ?????? ?????? ?? ??????? 4 ?? ????? ??? ???? Clarification
  • ????? 140: ??? ???????? ?? ??? ?????
  • ????? 141: ????-???? ???? ???????? ??????? ???? ?? ??? ???
  • ????? 145 & 146: ???? ?? ????? ?????? ??
  • ????? 146: TestRegExp ???? ???? ????? ??? ?? ??? ??
  • ????? 165: IsZip ???? ReformatPhone ???? ?? ????? ?? ????? ??? ??
  • ????? 170: "E." E ????? ?? ?????? ?? ?????
  • ????? 187: "?? ???????????" ????? ?????? ?? ????
  • 188 ????? ??: ?????? ?? ????? ?? ???????? ????
  • ????? 192: newline ??? ????? ??? ???????? ??
  • ????? 192: "++"???? ?????"x ++ x"

???? ???????

CD-ROM ??: "????" ????? ?? ????? assessment ??????

CD-ROM ?? ??? ???????, ??? ?? ?????? ???? ???

????????? ????:
"?? ???? ?? ???? ????????: ???? ?? shortcoming COM Interop ?? ????? ?? ????????"

?? ???:
"?? ???? ?? ????????: ???? ?? shortcoming COM Interop ?? ????? ?? ????????"

CD-ROM: Assessment ????? ????? ???? ????? ICollection ?? IDictionaryEnumerator ????

CDROM ?? Readiness ??????? assessment ??? ?? ?????? ????:

"?? ??? ??? ??? ???? ?? ?????? ?????? ?? ?? ?? ???-each ??? ?? ????? ???? ??? iterated ???? ?????? ?? ????? ???????? ????? ?????? ???????????? (????? ?? ???? ??? ?? ???)
ICollection
IDictionaryEnumerator
IDictionary
IEnumerable
IEqualityCOmparer"

Assessment ????? ?? ?? ????? IDictionaryEnumerator ?? IEnumerator ????

??? ??????? ???: ICollection ?? IEnumerator.

CD-ROM: Assessment ????? ?? ????? ???? ????? ???? ????? ?????

Readiness ??????? Assessment ??? ?? ?????? ????:

"?? ????? ??? ?? ??? System.Windows.Forms.Button ???? ?? ??? ?????? (????? ???)
Serializing
ENTER
MouseHover
???? ?????
????? ????,
MosueOver"

Assessment ???? ?? ??? ??????? ???: ???? ????, MouseHover, ????? ?????

Assessment ????? ????? ??? ??? ?? ??? ??? ?? ????? ???? ?????: ?? ???? ??????

CD-ROM: lesson3-exercise1-???????-partial ??? ????? ???????? ??? \Chapter01 ?????? ??

Visual Basic ?? C# ??? ????? "lesson3-exercise1-???????-partial" \Code\Chapter01 ??????? ?? ???????? ???? ????????? ?? ??????? Microsoft ??????? ?????? ?? ??????? ???? ?? ??? ?????? ???:

lesson3.exe

Microsoft ?????? ??????? ?? ???? ??????? ???? ?? ???? ??? ???? ????? ?? ???, ????? ???? ?????? ?? ????? ?? ???? ?? Microsoft ???????? ??? ?????::

119591?????? ?????? ?? Microsoft ?????? ??????? ???? ??????? ????

Microsoft ????? ?? ??? ?? ????? ?? ????? ?? ??? Microsoft ?? ?? ?????? ?? ?????? ???? ??????? ?????-??? ?????????? ?? ????? ???? ?? ????? ????? ?? ?? ??.. ????? ?? ?? ???????-??????????? ????? ?? ???????? ???? ??? ?? ?? ????? ??? ???? ?? ??????? ???????? ?? ????? ??? ??? ???? ??..

CD-ROM ??: scored ??? Assessment qurestion

CD-ROM ?? ??? ???????, ??? ?? ?????? ?? scored ???? ??? ???

?????? ???? ??:
"???? ??? ???? ??? ????????? ?? ?? ???? ?? ??? ????? ????????? ?? ???? ???? ?? ???????? ??? ???????, ??? ???? ?? ?????? ????? ?? ????? ?? ??? ??? ?? ???, ?????????? ?? ??? responsive ???? ?? ??? ????????? ?? ???????? ??? ?? ????? ??? ????? ??? ???? ??????????? ?? ??????????? ?? ?????? ?? ?? ???? ?? ??? ??? ??? ??? ????? ????? ????? ???? ??? (????? ?? ???? ??? ?? ???.)"

?????? scored ??, ?? ?? ????? ?? ??????? ??? ??, ?????? ?? ????? ??????? ?????

????? ???? ??:
'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();

????? 3: System.Value rather System.ValueType ?? ????????

????? 3, ?? ????? ??????? ???? ?? ??? ???? ????? ????:

"?? ?????? ?? ??? System.Value ???? ?????? ??."

??? ????? ???? ?????:

"?? ?????? ?? ??? System.ValueType ???? ?????? ??."

????? 5: ??????/?????? ???? ????? ?????? / ??? ????

????? 5, ?? ????? ?????? ?? ?????? 1-2 ?? ???? ???? ???? ???

????????? ????:
"System.DateTime (??????/??????)"

?? ???:
"System.DateTime (?????? / ??? ????)"

????? 5: 4 1 ???? ?????

????? ?? 5, ?? ????? ?????? ?? ?????? 1-2 ???? ????? ???? ???

????????? ????:
"4"

?? ???:
"1"

????? 9: ????? ??? ???? ??

????? ?? 9, ????? ??? ????:

"??? .NET 2.0
?????? ?????? ?? .NET 2.0 ??? ??."

?? ??? ??, ?? ??? disregarded ???? ??????

12 ????? ??: ???? ?? ????? ?? ????? ???? ??? "????????? ???? ??" "initializes" ?? ??? 4

????? ?? 12, ??? 4 ??? ?? ????? ????? ????:

"?? ??? ??? ????? ??? ????????? ???? ?? ?? ??? ??? ????? ??, ????????? ???? ?? ?? ???? constructor ??? ?????:"

??? ????? ???? ?????:

"?? ??? ??? ????? ??? ????????? ???? ?? ?? ???? constructor ?? ?? ??? ??? ????? ??, initializes ??? ?????:"

????? 14: ???? "????" ??? 5 ??? "??????" ?? ?? ????? ?? ????? ???? ???? ??

?? ????? 14, ??? 5 ??? ?? ????? ????? ????:

"?? ??? ??? ????? ??? ????? ????????? ???? ?? ?? ??????? ???? ?? ??????? ?? ??? ?? ????? ???? ?? ??? ???? ????? ??? ?? ??????? ????:"

??? ????? ???? ?????:

"?? ??? ??? ????? ??? ????? ????????? ???? ?? ?? ??????? ?????? ?? ??????? ?? ??? ?? ????? ???? ?? ??? ???? ????? ??? ?? ??????? ????:"

????? 18: ???? "??" ????? ????? ?? ???????? ??

????? 18, ?? ?? ????? ?? ????? ????? ????:

"?? ?? ???? ?????? ?? ?????? ??????? ????, ?? ??????? ?? ?????? ?????? ?? ??? ????????????."

??? ????? ???? ?????:

"?? ?? ??? ?????? ?????? ?? ??????? ????, ?? ??????? ?? ?????? ?????? ?? ?? ??? ????????????."

????? 24: C# ??? ????? ???

????? 24, ?? ????? ??? ????? VB ??? ????? ???? ???? ?? ???? ?????:

// 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);
}


????? 25: C# ?????? ??? ??? ???

????? ?? 25, VB ??? ????? ?? ???? ??? ?????? ?????:

Dim sr As StreamReader = New StreamReader("text.txt")
Try
	Console.WriteLine(sr.ReadToEnd)

?? ???? ???? ?????:

Dim sr As StreamReader
Try
	sr = New StreamReader("text.txt")
	Console.WriteLine(sr.ReadToEnd)"

C# ?? ???? ??? ?????? ?? ???? ?? ??? ????? ???:
"StreamReader sr = new StreamReader("text.txt");
try
{
	Console.WriteLine(sr.ReadToEnd());"

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

46 ????? ??: ??? ?? ?????? ??? ?????

????? ?? 46, C# ??? ?????? ????? ????? ????? ?? ??????? ???? ???

????????? ????:
// 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

?? ???:
// 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


????? 47: "Guid" ?? ????? ?? "????????????" ?????

????? ?? 47, ???? ?? ????? ???????? ?? ????? ????? ??? ?? ???? ??????? ???

????????? ????:
"????? Studio ???? ?? ????? ??? ???? ????????? ???? ??????? ?? ??? ?? ?? ??? ??????, ?????, ?????, ????????????, ?? ??????? ????? ???, ?? ????????? ????? ???."

?? ???:
"????? Studio ???? ?? ????? ??? ???? ????????? ???? ??????? ?? ??? ?? ?? ??? ??????, ?????, ?????, guid ?? ??????? ????? ??, ??? ????????? ????? ???."

????? 49: VB ??? ????? ?????? ????

????? ?? 49, VB ??? ????? ??? ??? ?????? ?????? ' ???? ???

????????? ????:
' VB
Imports System.Runtime.CompilerServices
<Assembly:TypeForwardedTo(GetType(DestLib.TypeA))]>

?? ???:
' VB
Imports System.Runtime.CompilerServices
<Assembly:TypeForwardedTo(GetType(DestLib.TypeA))>

????? 49: VB ??? ????? ??????? ???? ????????

????? ?? 49, ????? ?? ???? ?? ??? ????? VB ??? ????? "Inherits ???????" ???????? ???

????????? ????:
' VB
Class Manager
End Class

?? ???:
' VB
Class Manager : Inherits Person
End Class

51 ????? ??: ??? ??? ??? ?? ?????????

????? ?? 51, ??? 4 ??? ??? ????? ?????:

'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)


?? ???? ???? ?????:

'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)


????? 52: ??? ????? ??? "progressBar1" ?? ????? "progressBar" ?????

?? 52, "progressBar" ??? ????? C# ??? ????? ????? ?? ????? ?? ?? ????? ?? ??? ??? 1 ???????? ??????

????????? ????:
// C#
void t_Tick(object sender, EventArgs e)
{
progressBar.Value += 10;
if (progressBar.Value >= 100)
t.Stop();
}

?? ???:
// C#
void t_Tick(object sender, EventArgs e)
{
progressBar1.Value += 10;
if (progressBar1.Value >= 100)
t.Stop();
}


????? 55: ???????? ??????? narrowing ?? ??? ?????

????? ?? 55, ????? ?? ????? ??? ??? ????? ????:

"??? ?? narrowing ??????? ??? ???? ????? ???? ??????? ???? ??? ????? ??? ?????? ?????? ?? ?????? ?? ???? ?? ?? ??? ?????? ?? ??? ??? ???????? ???? ??, ?? ????????? ???? ?? narrowing ????? ?? ?????? ???? ?? TryCast ?? TryParse ?? ????? ???? ?? ????? ??? ?? ???? ????."

??? ????? ???? ?????:

"??????? narrowing ?? ???? ?? ???? ???? ??? ?????? ??? ????? ??? ?????? ?????? ?? ?????? ?? ???? ??? ?? ?????? ?? ??? ?? ??????? ????????? ???? ?? ??? ?? ??????? ?????? ?? compile-???? ??????."

????? 58: ??? ??????????? ????? ??? ????? ??? ????? ???? ???? ??

????? 58, ?? ????? VB ??? ????? ?? ????? ?????? ????:

Console.WriteLine("a = {0}, i = {0}", a.ToString, i.ToString)

??? ????? ???? ?????:

Console.WriteLine("a = {0}, i = {1}", a.ToString, i.ToString)

C# ??? ????? ?? ????? ?????? ???? ??:

Console.WriteLine("a = {0}, i = {0}", a.ToString(), i.ToString());

??? ????? ???? ?????:

Console.WriteLine("a = {0}, i = {1}", a.ToString(), i.ToString());


????? 59: ????? Exercise 1 ?? ??? ??? ??? ????? ?? ????? ?? ????? ????

????? ?? 59, ????? ??? Exercise 1 ?? ??????? ??? ??? VB ??? ?? ?????? ????:

Dim db As Decimal = 1

??? ????? ???? ?????:

Dim db As Double = 1


????? 63: "narrowing" "widening" ?? ????? ?? ????? ???? ???? ??

????? ?? 63, ????? ????? ?? ????? ???????? ????:

"C# ???? ???? ??????? ?? ???, narrowing ?? ??? implicit ??????? ???? ??? ??????? ???? ?? ?? ???? ??."

??? ????? ???? ?????:

"C# ???? ???? ??????? ?? ???, widening ?? ??? implicit ??????? ???? ??? ??????? ???? ?? ?? ???? ??."

????? 72: "????? ???" "exists ???" ?? ????? ?? ????????

????? ?? 72, ??????? ???? ?? ??? ???? ????? ????:

"?????? ?? ???, ?? ???? ?? ???? ??? ?? ???? ????? ?? FileInfo ???????? Exist ??? ?? ??? ?? ?? ??? ??? ????? ??? ??? ?????? ??? ??:"

??? ????? ???? ?????:

"?????? ?? ???, ?? ???? ?? ???? ??? ?? ???? ????? ?? FileInfo ???????? exists ??? ?? ??? ?? ?? ??? ??? ????? ??? ??? ?????? ??? ??:"

????? 73: ???????? ???? ????? DirectoryInfo ????????

????? ?? 73, ????? ?? ??? ??? ?????? 2-5 ???? ???

????????? ????:
"?? ???????? ?? ??? ??? ?????????? ?? ?? ??? ??? ??????? ???? ??"

?? ???:
"?? DirectoryInfo ???????? ?? ??? ??? ?????????? ?? ?? ??? ??? ??????? ???? ??"

????? 74: DriveInfo ???? ?? ??? ??? ?? ????? ???? ???

????? ?? 74, DriveInfo ???? ?????? ?? ??????? ???? ????? ????:

? DriveInfo ???? ?????? ?? ????? ?? ???? ?????? ??? ??? ??? ?????????? ?? ????? ?? ??? ??? ???????????????. ?

??? ????? ???? ?????:

"DriveInfo ???? ???? ?????? models ?? ??????? ?? ?????? ??? ??????? ?? ??? ?????? ???? ?? ??? ??? ?????? ????? ??? ??? ?????? ?????? ???, ?? ???????? ?? ?? ??? ?????? ?? ?? ????????? ???? ?? ??? DriveInfo ?? ????? ????? ?? ?? ???? ??? ?? ?????? ?????? ?? ?????? ?? ?????? ????? ????? ?? ??? ????? ?? ???."

????? 76: ?????? ????? ????? ???????? ?? "??????" ????

????? ?? 76, ?????? ????? ??? ?????? 2-9 ?? ?? ????? ????:

"?????? ???? ????????? ?? ???."

??? ????? ???? ?????:

"?????? ?????? ???? ????????? ?? ???."

????? 76: ??? ?? ????????? ???? ????? ???? ???????? ?? ???? ???? ?? ???

????? ?? 76, ??? ?? ?????? ?? ???? ???? ?? ???? ????? ????:

"??? ?? ?????? ?????? ?? ??????? ?? ??? ?? ????????? ?? ???? ????:"

??? ????? ???? ?????:

"???? ?????? ??? ??? ???????? ?? ????????? ???? ?? ??? ?? ????????? ?? ???? ????:"

????? 81: ?? "Added" ????? ??? ?? ?? ????? ?? "?????, ???? ??"

????? 81, ?? ????? ???????? ?? ????? ????? ????:

"??? ?? ????? Added ?? Changed ????? ?? ????? ??, ?? ?? ???? ??? ?????? ??? ???? ?? ??????? ?? ??? ??????."

??? ????? ???? ?????:

"??? ?? ????? Created, Deleted ?? Changed ????? ?? ????? ??, ?? ?? ???? ??? ?????? ??? ???? ?? ??????? ?? ??? ??????."

????? 83: ?????? ???????? ???? ?? ??? ??????? ?? ????? ??

????? ?? 83, Excercise 1 ?? ???? ????? ????:

"?? exercise ??? ?? ????? ???? ???? ????? ?????? ??? ??? ??????? ?? ?????? ??."

??? ????? ???? ?????:

"?? exercise ??? ?? ????? ???? ??? ????? ?????? ??? ??? ??????? ?? ?????? ??."

????? 83: ?? ??? 2 ??? "????? ????" ?? ????? ?? ????? ???? ??? "?????"

????? ?? 83, ??? 2 ????:

"?? ???? (?? ?????? C# ??? ?? ????????) System.IO ??? ????? ?? ??? ??? ????????? ???."

??? ????? ???? ?????:

"?? ???? (?? ?????? ??? C# ??? ?? ????? ???? ??? aa) System.IO ??? ????? ?? ??? ??? ????????? ???."

84 ????? ??: ??? 6 ??? ??? ????

????? ?? 84, ??? 6 ?? ???? ????? ????:

"??? ????? ???? ??????, Windows ??????????? ?? ??? ??? DirectoryInfo ???????? ?? ?? ?? ??????? ?? ????? ?? ??? ?? ShowDirectory ?????? ?? ??? ???? ?? ??? ????? ???? ?? ??? ??? ?????."

??? ????? ???? ?????:

"????? ?????? ??? ?????? ?????????? ?? ??? ??? DirectoryInfo ???? ?? ?? ?? ??????? ?? ????? ?? ??? ?? ShowDirectory ?????? ?? ??? ???? ?? ??? ????? ???? ?? ??? ??? ?????."

????? 85: EnableRaisingEvents ??? ???????? EnablingRaisingEvents ?? ??? ???

????? ?? 85, ??? 7 ????:

"EnablingRaisingEvents ??? ??? ???? ?? ??? ????? throwing ??????? ???? ?? ??? watcher ???????? ????? ???? ?? ??? ???."

??? ????? ???? ?????:

"EnableRaisingEvents ??? ??? ???? ?? ??? ????? throwing ??????? ???? ?? ??? watcher ???????? ????? ???? ?? ??? ???."

????? 89, ??? ???????? ??????? ?????? ??? ????? ???? ???? ???

????? ?? 89, 3, 4 ?? ?? 5th ????? ????? ?????:

"* CryptoStream (System.Security)
* NetworkStream (System.Net)
* GZipStream (System.Compression) "

?? ???? ???? ?????:

"* CryptoStream (System.Security.Cryptography)
* NetworkStream (System.Net.Sockets)
* GZipStream (System.IO.Compression) "

????? 91: ????? ?????? ????? ?? ???? ?? ?????

????? ?? 91, ???? ????? ????? ????:

"???????? ????? ?? ???? ?? ??? ?????? ????? ?? ???"

??? ????? ???? ?????:

"???????? ???? ?? ??? ?????? ????? ?? ???"

????? 92: ?????????? ???? ?? ??????????? ?? ??? ?????

????? ?? 92, ?????????? ???? ?????? ?? ????? ????? ????:

"?????????? ???? ?????? ??????? ?? ??? ?? ???? ?? ??? ????? ?? ????? ?? ??? ??? ???????????????."

??? ????? ???? ?????:

"?????????? ???? ?????? ??? ??????????????? ?? ?????, ???????? ????, ????? ?? ???????????? ?? ???????? ???? ?? ???."

????? 92: OpenWrite ?????? ?? ????? ???? ??

????? ?? 92, OpenWrite ???? ?? ??? ????? ????:

"???? ?? ??? ???? ?????? ????? ?? ????? ?? ?? ?? StreamWriter ???????? ???? ??."

??? ????? ???? ?????:

"???? ?? ??? ???? ?????? ????? ?? ????? ?? ?? ?? FileStream ???????? ???? ??."

????? 97: "?????" "?????" ?? ????? ?? ????? ???? ???? ??

????? ?? 97, ???? ???????? ?? ????? ????? ????:

"StreamReader ???? ?????? ??? ??????? ?? ?? ???? ?? ???? ????? ?? ??? ??? ???????????????."

??? ????? ???? ?????:

"StreamReader ???? ?????? ??? ??????? ?? ?? ???? ?? ???? ????? ?? ??? ??? ???????????????."

????? 100, StreamWriter ???? ?? ??? ??????????????? ??? ?????

????? ?? 100, ???? ???????? ?? ????? ????? ????:

"StreamWriter ???? ?????? ??? ??????? ?? ?? ???? ?? ???? ????? ?? ??? ??? ???????????????."

??? ????? ???? ?????:

"StreamWriter ???? ?????? ??? ??????? ?? ?? ???? ?? ???? ????? ?? ??? ??? ???????????????."

????? 104: ????? ??? ?? ??????? ?? ??? ?????

????? 104, ?? ?? ????? ?? ????? ????? ????:

"?????? ?? ???, ????? ??? ???? ????? ?? ??? ???? ?????:"

??? ????? ???? ?????:

"?????? ?? ???, ????? ??? ???? ????? ?? ??? ?? ?????? ???? ?? ???? ????? ?????:"

????? 111: ?? ??? 2 ??? "????? ????" ?? ????? ?? ????? ???? ??? "?????"

????? ?? 111, ??? 2 ????:

"?? ???? (?? ?????? C# ??? ?? ????????) System.IO ??? ????? ?? ??? ??? ????????? ???."

??? ????? ???? ?????:

"?? ???? (?? ?????? ??? C# ??? ?? ????? ???? ??? aa) System.IO ??? ????? ?? ??? ??? ????????? ???."

????? 111: ??? ??????? ??? 3 ??? Excercise 1

????? ?? 111, Exercise 1 ?? ??? 3 ????:

"????? ?????? ??? ?? ??? StreamWriter ?? ??? ????? ???? ?? ???? ?????."

??? ????? ???? ?????:

"????? ?????? ??? ?? ??? StreamWriter ?? ??? ????? ???? ?? CreateText ?????? ?? ??? ????."

????? 112: ???? ???????? ???????? ?? ????? ??

????? ?? 112, Exercise 2 ?? ??? 2 ????:

"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."

??? ????? ???? ?????:

"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."

Page 115: The descriptions of the CanRead property is incorrect

On page 115, the description of the CanRead property in Table 2-30 reads:

"Determines whether the stream supports reading while decompressing a file. (Inherited from the Stream class.)"

??? ????? ???? ?????:

"Determines whether the stream supports reading. (Inherited from the Stream class.)"

Page 120: CompressionMode.Compress used in place of CompressionMode.Decompress

On page 120, the first full code sample read:

' VB 
Dim compStream As _ 
    New GZipStream(sourceFile, CompressionMode.Compress) 
 
// C# 
GZipStream compStream =  
    new GZipStream(sourceFile, CompressionMode.Compress);

??? ????? ???? ?????:

' VB 
Dim compStream As _
    New GZipStream(sourceFile, CompressionMode.Decompress)

 // C#
GZipStream compStream = 
    new GZipStream(sourceFile, CompressionMode.Decompress);


Page 121: The term "include" used in place of "using" in Step 2

On page 121, step 2 reads:

"?? ???? (?? ?????? C# ??? ?? ????????) System.IO ??? ????? ?? ??? ??? ????????? ???."

??? ????? ???? ?????:

"?? ???? (?? ?????? ??? C# ??? ?? ????? ???? ??? aa) System.IO ??? ????? ?? ??? ??? ????????? ???."

Pages 121 & 122: Code samples are incorrect for Step 7

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.

????????? ????:
' VB
Dim theByte As Integer = sourceFile.ReadByte()
While theByte <> -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();
}

?? ???:
' 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);

Page 122: Additional note needs to be added for step 9.

On Page 122, Step 9 an addition NOTE needs to be added before the code sample for more information:

"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."

Page 127: Term "file" used in place of "directory"

On page 127, the description of GetDirectoryNames in Table 2-36 reads:

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

??? ????? ???? ?????:

"Gets a list of directory names within the store that match a directory mask"

Page 129: Incorrect definition for IsolatedStorageFileStream

On page 129, the first sentence of the first paragraph reads:

"The IsolatedStorageFileStream class encapsulates a stream that is used to create files in isolated storage."

??? ????? ???? ?????:

"The IsolatedStorageFileStream class encapsulates a stream that is used to read, write and create files in isolated storage."

Page 133: Files referenced in place of directories

On page 133, the paragraph before the final code sample reads:

"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:"

??? ????? ???? ?????:

"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:"

Page 135: The term "include" used in place of "using" in Step 2

On page 135, step 2 reads:

"?? ???? (?? ?????? C# ??? ?? ????????) System.IO ??? ????? ?? ??? ??? ????????? ???."

??? ????? ???? ?????:

"?? ???? (?? ?????? ??? C# ??? ?? ????? ???? ??? aa) System.IO ??? ????? ?? ??? ??? ????????? ???."

Page 135: Object referenced in place of class

On page 135, the first sentence of step 3 in Exercise 1 reads:

"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."

??? ????? ???? ?????:

"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."

Page 135: Incorrect Visual Basic code in step 3

On page 135, the Visual Basic code in step 3 reads:

' VB 
IsolatedStorageFile userStore = _ 
    IsolatedStorageFile.GetUserStoreForAssembly()

??? ????? ???? ?????:

' VB
Dim userStore as IsolatedStorageFile = _
    IsolatedStorageFile.GetUserStoreForAssembly()


Page 136: Incorrect Visual Basic code in steps 4 and 5

On page 136, the Visual Basic code in step 4 reads:

' VB 
IsolatedStorageFileStream userStream = new _  
    IsolatedStorageFileStream("UserSettings.set", _ 
                              FileMode.Create, _  
                              userStore) 


??? ????? ???? ?????:

' VB
Dim userStream as IsolatedStorageFileStream = new _ 
    IsolatedStorageFileStream("UserSettings.set", _
                              FileMode.Create, _ 
                              userStore)


The code in step 5 reads:

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


??? ????? ???? ?????:

' VB
Dim userWriter as new StreamWriter(userStream)
userWriter.WriteLine("User Prefs")
userWriter.Close()


Page 137: Sample code missing

On page 137, the fifth line of the first section of sample code reads:

// ...

??? ????? ???? ?????:

Console.WriteLine("No data saved for this user.");


Page 139: Clarification of data in 4th bullet down under Chapter Summary

On page 139, fourth bullet down under Chapter Summary it reads:

"StreamReader ?? StreamWriter ???? ?? FileStreams, MemoryStreams ?? IsolatedStorageFileStreams ????, ?????? ?? ??? ???? ?? ???? ?? ??? dealing ??? ????????????? ???."

??? ????? ???? ?????:

"StreamReader ?? StreamWriter ???? ??? ?? FileStreams, MemoryStreams ?? IsolatedStorageFileStreams ????, ?????? ?? ???? textoriented ???? ?? ???? ?? ??? dealing ??? ????????????? ???."

????? 140: ??? ???????? ?? ??? ?????

????? ?? 140, ????? ??? ???????? ?????? ?? ???? ????:

"????? ??? ???????? ???, ?? ???? ????? ?? ???? ?? ???? ?????? ???? ????????? ????? ?? ?????? ?? ????? ???? ???? ?? ???? ???."

??? ????? ???? ?????:

"????? ??? ???????? ???, ?? ???? ????? ?? ???? ?? ???? ?????? ???? ??????? ?? ?????????? ?? ???? ???."

????? 141: ????-???? ???? ???????? ??????? ???? ?? ??? ???

????? ?? 141, ????? ?? ?????? ??????????? ??????? ??? ????:

"?? ????? ???? ?? ??? ???? ????? ????? ?? ?? ?? ?????? 1 ?? 2? ??????? ????? ?? ??? ???? ?????????? ?? ??????? ???? ??? ??? ??????, ???? ?????? 3 ?? ????

-1 ????? ?? ???? ?? ?????? ?? ??? ?????? ??? ?????? ???? ?? ??? ?????????? ??????? ?? Windows ????????? ?????? ?????
-?????? Windows ??????? ????????? ??????? 2 ????? ?????????? ???? ?? ??????? ??? ???
-???? ?? ???? ?? ?? ??? ???????????? ?? ??? ???? ????? ?? ??? ??? ???????-???? ???? ?????? ???? ?? ??? ?????? 3 ??????? ????. "

??? ????? ???? ?????:

"?? ????? ???? ?? ??? ???? ????? ????? ?? ?? ?? ?????? 1 ?? 2? ??? ??????? ???? ?????????? ?? ????-???? ???? ??? ??? ?????? ??? ??, ?? ??? ?????? 3 ?? ??????

-1 ????? ?? ???? ?? ?????? ?? ??? ?????? ??? ?????? ???? ?? ??? ?????????? ??????? ?? Windows ????????? ?????? ?????
-?????? Windows ??????? ????????? ??????? 2 ????? ?????????? ???? ?? ??????? ??? ???
-???? ?? ???? ?? ?? ??? ???????????? ?? ??? ???? ????? ?? ??? ??? ????-???? ???? ?????? ???? ?? ??? ?????? 3 ??????? ????. "

????? 145 & 146: ???? ?? ????? ?????? ??

????? ?? 145, VB ??? ?????? ?? ??? 7 ???? ?? ????? 146 ???? ?? ??? ???? ????? ?? C# ??? ?????? ?? 11?

???????? (145 VB ?????):
If Regex.IsMatch(args(1),args(0)) Then

?? ???:
If Regex.IsMatch(args(0),args(1)) Then

????????? ???? (????? 146 C#):
if (Regex.IsMatch(args[1], args[0]))

?? ???:
if (Regex.IsMatch(args[0], args[1]))

????? 146: TestRegExp ???? ???? ????? ??? ?? ??? ??

????? ?? 146, ?? ???? ?????? ?? ???????? ?????? 1st ???????? ?? ??????? ????? ????? ??? ?? ???? ????

????????? ????:
C:\>TestRegExp ^\d{5}$ 1234
????? ?????? ?????????? ?? ??? ???? ?????
C:\>TestRegExp ^\d{5}$ 12345
????? ?????? ?????????? ?? ??? ???? ???

?? ???:
C:\TestRegExp 1234 ^^\d{5}$
????? ?????? ?????????? ?? ??? ???? ?????
(???: ?? ????? ????? ?? ??? ?????? ^ ??????? ???? ?????? interprets ^ ?? ?????? ???? ?? ??? ???? ????? ^ ?????? ???? ?? ?? Visual Studio ???? ?????? ????????? ??? - ???? - ???? ?????? ???? ?? ?????? ?? ???? ???? ?????? ???? ???? ??? ??.)
C:\TestRegExp 12345 ^^\d{5}$
????? ?????? ?????????? ?? ??? ???? ???

????? 165: IsZip ???? ReformatPhone ???? ?? ????? ?? ????? ??? ??

????? ?? 165, ??? ????? Exercise 2 ?? ??? 3 ??? ?? ???? ????? ????? ????:

"?? ???? ?????? ????????????? ??? ???? ??, ?????? ????? IsZip ???? ?? ?? ??? ????? ???:"

??? ????? ???? ?????:

"?? ???? ?????? ????????????? ??? ???? ??, ?????? ????? ReformatPhone ???? ?? ?? ??? ????? ???:"

????? 170: "E." E ????? ?? ?????? ?? ?????

????? 170, 4 ?????? ??, ?? ????? ? ????:

"E. amomomottohez"

??? ????? ???? ?????:

"amomomottohez"

????? 187: "?? ???????????" ????? ?????? ?? ????

????? 187, ?? ??? ????????? ??? Hashtable ?? StringDictionary ?? ????? ????

????????? ????:
"Hashtable ???????? ?? ???/??? ?? ????? ?? ?? ????? ?? ??? ?? ??????????? ?? ???? ?? ?????? ???? ??"

?? ???:
"Hashtable ???????? ?? ???/??? ?? ????? ?? ?? ????? ?? ??? ?? ???? ?? ?????? ???? ??"

????????? ????:
"StringDictionary ?????????? ?? ???/??? ?? ????? ?? ?? ????? ?? ??? ?? ??????????? ?? ???? ?? ?????? ???? ??"

?? ???:
"StringDictionary ?????????? ?? ???/??? ?? ????? ?? ?? ????? ?? ??? ?? ???? ?? ?????? ???? ??"

188 ????? ??: ?????? ?? ????? ?? ???????? ????

????? ?? 188, Adding ?? ???? ??????? ??? ?? ????? ????? ????:

"???? ?? ??? ???? ?????? ?? ???? ?? ??????? ???? ?? ???? straightforward."

??? ????? ???? ?????:

"???? ?? ??? ???? ????? ?? ??????? ?????? ?? ?????? ?? ?? ???? straightforward."

????? 192: newline ??? ????? ??? ???????? ??

????? 192, ?? ????? ??? ????? ?? seventh ???? ????:

// C# IEnumerator enumerator = coll.GetEnumerator();

??? ????? ???? ?????:

// C# 
IEnumerator enumerator = coll.GetEnumerator();


????? 192: "++"???? ?????"x ++ x"

????? ?? 192, ????? ?? ????? ??? ????? ?? ????? ?????? ?? ??? ???? ???

????????? ????:
for (int x = 0; x < coll.Count; ++x)

?? ???:
for (int x = 0; x < coll.Count; x++)

Microsoft ????? ???? ?? ???? ???????? ?????? ???? ?? ??? ??????? ???? ??? ?????????? ?? ????? ?? ??? ???????? ?? ???????? ?? ?????? printings ??? ????? ???? ?? ??? ????? ???? ??? ???? ??? ?? ???????? ?? ???? ??? ?????? ??, ?? ?? ???? ?? ?? ?? ???? ?? ??????? ?? ??? ????? ????

???

???? ID: 923018 - ????? ???????: 06 ?????? 2010 - ??????: 2.0
??????: 
kbmt KB923018 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:923018

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com