Part Number: X08-76381
Course Number: 2349B Released: 02/2002
Delivery Guide
Programming with the
Microsoft
®
.NET Framework
(Microsoft Visual C#
™
.NET)
Information in this document, including URL and other Internet Web site references, is subject to
change without notice. Unless otherwise noted, the example companies, organizations, products,
domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious,
and no association with any real company, organization, product, domain name, e-mail address,
logo, person, places or events is intended or should be inferred. Complying with all applicable
Introduction..............................................................................................................1
Course Materials ......................................................................................................2
Prerequisites.............................................................................................................3
Course Outline .........................................................................................................4
Microsoft Certified Professional Program ...............................................................9
Facilities.................................................................................................................11
Module 1: Overview of the Microsoft .NET Framework
Overview..................................................................................................................1
Overview of the Microsoft .NET Framework..........................................................2
Overview of Namespaces ......................................................................................13
Review ...................................................................................................................17
Module 2: Introduction to a Managed Execution Environment
Overview..................................................................................................................1
Writing a .NET Application.....................................................................................2
Compiling and Running a .NET Application.........................................................11
Lab 2: Building a Simple .NET Application..........................................................29
Related Topics and Tools.......................................................................................31
Lab 4: Packaging and Deployment ........................................................................37
Review ...................................................................................................................42
Module 5: Common Type System
Overview..................................................................................................................1
An Introduction to the Common Type System ........................................................2
Elements of the Common Type System...................................................................8
Object-Oriented Characteristics.............................................................................25
Lab 5: Building Simple Types ...............................................................................39
Review ...................................................................................................................44
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
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
Module 12: Serialization
Overview..................................................................................................................1
Serialization Scenarios.............................................................................................2
Serialization Attributes ............................................................................................4
Object Graph............................................................................................................5
Serialization Process ................................................................................................7
Serialization Example ..............................................................................................9
Deserialization Example ........................................................................................10
Custom Serialization..............................................................................................12
Custom Serialization Example...............................................................................14
Security Issues .......................................................................................................17
Lab 12: Serialization ..............................................................................................18
Review ...................................................................................................................27
Module 13: Remoting and XML Web Services
Overview..................................................................................................................1
Remoting..................................................................................................................2