Tài liệu Programming with C# - Pdf 90

Part Number: X08-74949
Course Number: 2124C Released: 02/2002

Delivery Guide
Programming with C#
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
copyright laws is the responsibility of the user. Without limiting the rights under copyright, no
part of this document may be reproduced, stored in or introduced into a retrieval system, or
transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or
otherwise), or for any purpose, without the express written permission of Microsoft Corporation.

Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual


Facilities.................................................................................................................10

Module 1: Overview of the Microsoft .NET Platform
Overview..................................................................................................................1

Introduction to the .NET Platform ...........................................................................2

Overview of the .NET Framework ..........................................................................5

Benefits of the .NET Framework.............................................................................7

The .NET Framework Components.........................................................................8

Languages in the .NET Framework .......................................................................14

Review ...................................................................................................................16

Module 2: Overview of C#
Overview..................................................................................................................1

Structure of a C# Program .......................................................................................2

Basic Input/Output Operations.................................................................................9

Recommended Practices ........................................................................................15

Compiling, Running, and Debugging ....................................................................22

Lab 2.1: Creating a Simple C# Program................................................................36


Lab 4.1: Using Statements .....................................................................................32

Handling Basic Exceptions ....................................................................................42

Raising Exceptions.................................................................................................52

Lab 4.2: Using Exceptions.....................................................................................62

Review ...................................................................................................................72
iv Programming with C# Module 5: Methods and Parameters
Overview................................................................................................................. 1

Using Methods........................................................................................................ 2

Using Parameters .................................................................................................. 16

Using Overloaded Methods .................................................................................. 29

Lab 5.1: Creating and Using Methods .................................................................. 37

Review .................................................................................................................. 48

Module 6: Arrays
Overview................................................................................................................. 1

Overview of Arrays................................................................................................. 2


The Object Hierarchy............................................................................................ 23

Namespaces in the .NET Framework.................................................................... 29

Lab 8.1: Defining And Using Reference-Type Variables..................................... 35

Data Conversions.................................................................................................. 44

Multimedia: Type-Safe Casting ............................................................................ 57

Lab 8.2: Converting Data...................................................................................... 58

Review .................................................................................................................. 63

Module 9: Creating and Destroying Objects
Overview................................................................................................................. 1

Using Constructors.................................................................................................. 2

Initializing Data .................................................................................................... 13

Lab 9.1: Creating Objects ..................................................................................... 32

Objects and Memory............................................................................................. 40

Resource Management.......................................................................................... 46

Lab 9.2: Managing Resources............................................................................... 55


Using Namespaces.................................................................................................28

Using Modules and Assemblies.............................................................................49

Lab 11.2: Using Namespaces and Assemblies.......................................................57

Review ...................................................................................................................63

Module 12: Operators, Delegates, and Events
Overview..................................................................................................................1

Introduction to Operators.........................................................................................2

Operator Overloading ..............................................................................................6

Lab 12.1: Defining Operators ................................................................................19

Creating and Using Delegates................................................................................37

Defining and Using Events ....................................................................................47

Demonstration: Handling Events...........................................................................53

Lab 12.2: Defining and Using Events....................................................................54

Review ...................................................................................................................63

Course Evaluation..................................................................................................65

Module 13: Properties and Indexers


Nhờ tải bản gốc
Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status