Contents

Introduction

Part I: The C# Language

Chapter 1: .NET Architecture

The Relationship of C# to .NET

The Common Language Runtime

A Closer Look at Intermediate Language

Assemblies

.NET Framework Classes

Namespaces

Creating .NET Applications Using C#

The Role of C# in the .NET Enterprise Architecture

Summary

Chapter 2: C# Basics

Before We Start

Your First C# Program

Variables

Predefined Data Types

Flow Control

Enumerations

Arrays

Namespaces

The Main() Method

More on Compiling C# Files

Console I/O

Using Comments

The C# Preprocessor Directives

C# Programming Guidelines

Summary

Chapter 3: Objects and Types

Classes and Structs

Class Members

Anonymous Types

Structs

Partial Classes

Static Classes

The Object Class

Extension Methods

Summary

Chapter 4: Inheritance

Types of Inheritance

Implementation Inheritance

Modifiers

Interfaces

Summary

Chapter 5: Arrays

Simple Arrays

Multidimensional Arrays

Jagged Arrays

Array Class

Array and Collection Interfaces

Enumerations

Summary

Chapter 6: Operators and Casts

Operators

Type Safety

Comparing Objects for Equality

Operator Overloading

User-Defined Casts

Summary

Chapter 7: Delegates and Events

Delegates

Events

Summary

Chapter 8: Strings and Regular Expressions

System.String

Regular Expressions

Summary

Chapter 9: Generics

Overview

Creating Generic Classes

Generic Classes’ Features

Generic Interfaces

Generic Methods

Generic Delegates

Other Generic Framework Types

Summary

Chapter 10: Collections

Collection Interfaces and Types

Lists

Queues

Stacks ...

Get Professional C# 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.