iv Programming with the Microsoft® .NET Framework (Microsoft Visual C#™ .NET)
Module 6: Working with Types
Overview................................................................................................................. 1
System.Object Class Functionality ......................................................................... 2
Specialized Constructors....................................................................................... 12
Type Operations.................................................................................................... 18
Interfaces............................................................................................................... 28
Managing External Types ..................................................................................... 34
Lab 6: Working with Types .................................................................................. 38
Review .................................................................................................................. 43
Module 7: Strings, Arrays, and Collections
Overview................................................................................................................. 1
Strings ..................................................................................................................... 2
Terminology – Collections.................................................................................... 20
.NET Framework Arrays....................................................................................... 21
.NET Framework Collections ............................................................................... 39
Lab 7: Working with Strings, Enumerators, and Collections................................ 57
Review .................................................................................................................. 63
Module 8: Delegates and Events
Overview................................................................................................................. 1
Delegates................................................................................................................. 2
Multicast Delegates............................................................................................... 12
Events.................................................................................................................... 21
When to Use Delegates, Events, and Interfaces.................................................... 31
Lab 8: Creating a Simple Chat Server................................................................... 32
Review .................................................................................................................. 42
Module 9: Memory and Resource Management
Overview................................................................................................................. 1
Memory Management Basics.................................................................................. 2
Non-Memory Resource Management................................................................... 12
Implicit Resource Management ............................................................................ 13
Explicit Resource Management ............................................................................ 26
Optimizing Garbage Collection ............................................................................ 36
Lab 9: Memory and Resource Management ......................................................... 49
Review .................................................................................................................. 56
Module 10: Data Streams and Files
Overview................................................................................................................. 1
Streams.................................................................................................................... 2
Readers and Writers................................................................................................ 5
Basic File I/O .......................................................................................................... 8
Lab 10: Files ......................................................................................................... 21
Review .................................................................................................................. 26