Contents

Introduction

Part One: The C# Language

Chapter 1: Introducing C#

What Is the .NET Framework?

What's in the .NET Framework?

How Do I Write Applications Using the .NET Framework?

MSIL and JIT

Assemblies

Managed Code

Garbage Collection

Fitting It Together

Linking

What Is C#?

What Kind of Applications Can I Write with C#?

C# in This Book

Visual Studio 2005

Visual Studio 2005 Express Products

VS Solutions

Summary

Chapter 2: Writing a C# Program

The Visual Studio .NET Development Environment

Console Applications

Try It Out: Creating a Simple Console Application

The Solution Explorer

The Properties Window

The Error List Window

Windows Forms Applications

Try It Out: Creating a Simple Windows Application

Summary

Chapter 3: Variables and Expressions

Basic C# Syntax

Basic C# Console Application Structure

Variables

Simple Types

Try It Out: Using Simple Type Variables

Variable Naming

Naming Conventions

Literal Values

String Literals

Variable Declaration and Assignment

Expressions

Mathematical Operators

Try It Out: Manipulating Variables with Mathematical Operators

Assignment Operators

Operator Precedence

Namespaces

Summary

Exercises

Chapter 4: Flow Control

Boolean Logic

Bitwise Operators

Boolean Assignment Operators

Try It Out: Using the Boolean and Bitwise Operators

Operator Precedence Updated

The goto Statement

Branching

The Ternary Operator

The if Statement

Try It Out: Using the if Statement

Checking More Conditions Using if Statements

The switch Statement

Try It Out: Using the ...

Get Beginning Visual C#® 2005 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.