Acknowledgments |
|
xix | |
Introduction |
|
xxi | |
|
|
|
Introduction to Visual C# Programming |
|
|
3 | (42) |
|
|
4 | (3) |
|
C# Core Language Features |
|
|
7 | (23) |
|
|
7 | (18) |
|
|
25 | (4) |
|
|
29 | (1) |
|
|
30 | (1) |
|
|
31 | (4) |
|
|
35 | (1) |
|
|
36 | (1) |
|
|
37 | (1) |
|
|
38 | (1) |
|
|
38 | (3) |
|
|
41 | (3) |
|
|
44 | (1) |
|
|
45 | (38) |
|
|
46 | (30) |
|
|
48 | (6) |
|
|
54 | (22) |
|
|
76 | (1) |
|
|
77 | (3) |
|
|
79 | (1) |
|
Identity versus Equivalence |
|
|
80 | (1) |
|
|
81 | (2) |
|
|
83 | (52) |
|
|
88 | (2) |
|
|
90 | (6) |
|
|
92 | (1) |
|
Object.GetHashCode Method |
|
|
93 | (1) |
|
|
93 | (1) |
|
|
94 | (1) |
|
Object.MemberwiseClone Method |
|
|
94 | (1) |
|
Object.ReferenceEquals Method |
|
|
95 | (1) |
|
|
96 | (2) |
|
|
98 | (1) |
|
|
98 | (1) |
|
|
99 | (3) |
|
Virtual and Override Keywords |
|
|
99 | (1) |
|
|
100 | (1) |
|
|
101 | (1) |
|
|
102 | (4) |
|
|
106 | (1) |
|
|
107 | (1) |
|
Constructors and Destructors |
|
|
108 | (3) |
|
|
111 | (8) |
|
|
113 | (2) |
|
Explicit Interface Member Implementation |
|
|
115 | (4) |
|
Reimplementation of Interfaces |
|
|
119 | (1) |
|
|
119 | (6) |
|
|
123 | (1) |
|
New Modifier and Polymorphism |
|
|
124 | (1) |
|
|
125 | (5) |
|
|
128 | (2) |
|
|
130 | (1) |
|
|
131 | (4) |
|
|
|
Introduction to Visual Studio 2005 |
|
|
135 | (52) |
|
Integrated Development Environment |
|
|
136 | (3) |
|
|
136 | (1) |
|
|
137 | (1) |
|
|
137 | (1) |
|
|
138 | (3) |
|
|
141 | (1) |
|
|
141 | (1) |
|
Managing Windows in Visual Studio |
|
|
142 | (1) |
|
|
143 | |
|
|
139 | (17) |
|
|
143 | (1) |
|
|
144 | (1) |
|
|
145 | (4) |
|
|
149 | |
|
|
147 | (4) |
|
Class Diagram Walkthrough |
|
|
151 | (5) |
|
|
156 | (1) |
|
|
156 | (4) |
|
|
156 | (2) |
|
|
158 | (1) |
|
Font and Color Formatting |
|
|
158 | (1) |
|
|
159 | (1) |
|
|
159 | (1) |
|
|
160 | (1) |
|
|
160 | (11) |
|
|
161 | (1) |
|
|
162 | (1) |
|
|
163 | (2) |
|
|
165 | (1) |
|
|
166 | (5) |
|
|
171 | (5) |
|
|
173 | (3) |
|
|
176 | (1) |
|
|
176 | (6) |
|
|
177 | (1) |
|
|
177 | (1) |
|
|
178 | (1) |
|
|
179 | (1) |
|
|
180 | (2) |
|
|
182 | (4) |
|
Publish a ClickOnce Application |
|
|
185 | (1) |
|
|
186 | (1) |
|
|
187 | (48) |
|
|
189 | (25) |
|
|
191 | (1) |
|
|
191 | (3) |
|
|
194 | (2) |
|
|
196 | (7) |
|
|
203 | (8) |
|
|
211 | (2) |
|
|
213 | (1) |
|
|
214 | (19) |
|
|
215 | (4) |
|
|
219 | (3) |
|
|
222 | (4) |
|
|
226 | (5) |
|
|
231 | (1) |
|
|
232 | (1) |
|
|
233 | (2) |
|
|
235 | (34) |
|
|
238 | (5) |
|
|
239 | (4) |
|
|
243 | (1) |
|
|
243 | (3) |
|
|
244 | (2) |
|
This Reference for Generic Types |
|
|
246 | (1) |
|
|
246 | (10) |
|
|
248 | (4) |
|
|
252 | (2) |
|
|
254 | (1) |
|
Reference Type Constraint |
|
|
254 | (1) |
|
Default Constructor Constraint |
|
|
255 | (1) |
|
|
256 | (1) |
|
|
257 | (3) |
|
|
258 | (1) |
|
|
259 | (1) |
|
|
260 | (7) |
|
|
261 | (2) |
|
|
263 | (2) |
|
|
265 | (1) |
|
|
266 | (1) |
|
|
267 | (2) |
|
|
269 | (26) |
|
|
270 | (8) |
|
|
278 | (5) |
|
|
283 | (8) |
|
|
291 | (4) |
|
Part III More C# Language |
|
|
|
|
295 | (30) |
|
|
296 | (17) |
|
|
297 | (1) |
|
|
298 | (2) |
|
|
300 | (1) |
|
|
300 | (7) |
|
|
307 | (4) |
|
Asynchronous Delegate Diagram |
|
|
311 | (1) |
|
|
312 | (1) |
|
|
313 | (6) |
|
|
316 | (2) |
|
Generic Anonymous Methods |
|
|
318 | (1) |
|
Limitations of Anonymous Methods |
|
|
318 | (1) |
|
|
319 | (4) |
|
|
319 | (1) |
|
|
320 | (1) |
|
|
321 | (2) |
|
|
323 | (2) |
|
|
325 | (30) |
|
|
326 | (1) |
|
|
327 | (1) |
|
Structured Exception Handling |
|
|
327 | (8) |
|
|
327 | (2) |
|
|
329 | (3) |
|
|
332 | (1) |
|
Exception Information Table |
|
|
333 | (1) |
|
|
333 | (2) |
|
|
335 | (10) |
|
System.Exception Functions |
|
|
336 | (1) |
|
System.Exception Properties |
|
|
337 | (1) |
|
|
338 | (2) |
|
|
340 | (1) |
|
COM Interoperability Exceptions |
|
|
341 | (4) |
|
|
345 | (2) |
|
|
347 | (4) |
|
Application.ThreadException |
|
|
348 | (1) |
|
AppDomain.UnhandledException |
|
|
349 | (2) |
|
Managing Exceptions in Visual Studio |
|
|
351 | (1) |
|
|
351 | (1) |
|
|
351 | (1) |
|
|
352 | (3) |
|
|
|
|
355 | (46) |
|
|
355 | (9) |
|
|
357 | (1) |
|
|
358 | (1) |
|
|
358 | (1) |
|
|
359 | (1) |
|
|
360 | (4) |
|
|
364 | (19) |
|
|
365 | (2) |
|
|
367 | (3) |
|
Browsing Type Information |
|
|
370 | (3) |
|
|
373 | (5) |
|
|
378 | (2) |
|
|
380 | (3) |
|
Function Call Performance |
|
|
383 | (1) |
|
|
383 | (16) |
|
IsGeneric and IsGenericTypeDefinition |
|
|
383 | (1) |
|
|
384 | (1) |
|
|
384 | (1) |
|
|
385 | (1) |
|
|
386 | (1) |
|
|
387 | (1) |
|
|
388 | (1) |
|
|
389 | (3) |
|
Creating a Custom Attribute |
|
|
392 | (4) |
|
Attributes and Reflection |
|
|
396 | (3) |
|
|
399 | (2) |
|
|
401 | (36) |
|
``Hello World'' Application |
|
|
403 | (2) |
|
|
405 | (1) |
|
|
406 | (11) |
|
|
417 | (6) |
|
|
423 | (5) |
|
|
428 | (1) |
|
|
429 | (4) |
|
|
433 | (3) |
|
Debugging with Visual Studio 2005 |
|
|
436 | (1) |
|
Debugging with Visual Studio 2005 |
|
|
437 | (62) |
|
|
438 | (60) |
|
Debugging Windows Forms Projects |
|
|
438 | (3) |
|
|
441 | (2) |
|
|
443 | (7) |
|
Visual Studio Debugging User Interface |
|
|
450 | (3) |
|
|
453 | (8) |
|
|
461 | (3) |
|
|
464 | (1) |
|
|
464 | (12) |
|
|
476 | (16) |
|
|
492 | (4) |
|
|
496 | (2) |
|
|
498 | (1) |
|
|
499 | (54) |
|
DebuggableAttribute Attribute |
|
|
501 | (2) |
|
|
503 | (1) |
|
Just-In-Time (JIT) Debugging |
|
|
504 | (2) |
|
|
506 | (6) |
|
|
511 | (1) |
|
|
512 | (7) |
|
|
513 | (6) |
|
|
519 | (6) |
|
|
520 | (3) |
|
|
523 | (2) |
|
|
525 | (5) |
|
|
525 | (2) |
|
|
527 | (3) |
|
|
530 | (9) |
|
|
531 | (3) |
|
|
534 | (3) |
|
|
537 | (1) |
|
|
538 | (1) |
|
|
539 | (7) |
|
|
541 | (5) |
|
|
546 | (1) |
|
|
547 | (3) |
|
|
548 | (1) |
|
|
549 | (1) |
|
|
550 | (3) |
|
|
|
|
553 | (48) |
|
|
554 | (8) |
|
Garbage Collection Overview |
|
|
555 | (4) |
|
|
559 | (1) |
|
Workstation GC Without Concurrent Garbage Collection |
|
|
560 | (1) |
|
|
560 | (2) |
|
|
562 | (15) |
|
|
577 | (11) |
|
|
581 | (1) |
|
Disposable Pattern Considerations |
|
|
582 | (4) |
|
|
586 | (2) |
|
|
588 | (10) |
|
|
591 | (1) |
|
|
591 | (1) |
|
Critical Finalization Objects |
|
|
592 | (1) |
|
Constrained Execution Region |
|
|
592 | (3) |
|
Managing Unmanaged Resources |
|
|
595 | (3) |
|
|
598 | (1) |
|
|
598 | (3) |
|
|
601 | (26) |
|
|
603 | (22) |
|
|
604 | (4) |
|
Pointer Parameters and Return |
|
|
608 | (3) |
|
|
611 | (14) |
|
|
625 | (2) |
|
Appendix: Operator Overloading |
|
|
627 | (22) |
|
Mathematical and Logical Operators |
|
|
628 | (11) |
|
|
629 | (3) |
|
Increment and Decrement Operators |
|
|
632 | (1) |
|
LeftShift and RightShift Operators |
|
|
633 | (1) |
|
Operator True and Operator False |
|
|
634 | (1) |
|
|
635 | (4) |
|
|
639 | (3) |
|
|
641 | (1) |
|
|
642 | (3) |
|
Operator Overloading Internals |
|
|
645 | (4) |
Index |
|
649 | |