Description
Completely revised to cover C# 2.0 and Visual Basic 2005, this introductory guide offers a thorough introduction to Microsoft's premier .NET language. Discover how to develop various kinds of web services and applications--including those that work with databases. More than 200 questions and programming exercises make mastering the essentials of the C# language easy and fun.
Full Description
Table of Contents
-
Chapter 1 C# and .NET Programming
-
C# 2005 and .NET 2.0
-
The .NET Platform
-
The .NET 2.0 Framework
-
The C# Language
-
The Structure of C# Applications
-
The Development Environment
-
What's in a Program?
-
Your First Program: Hello World
-
The Compiler
-
Examining Your First Program
-
Summary
-
Quiz
-
Exercise
-
-
Chapter 2 Visual Studio 2005
-
Before You Read Further
-
Start Page
-
Projects and Solutions
-
Inside the Integrated Development Environment
-
Building and Running
-
Menus and Toolbars
-
Summary
-
Quiz
-
Exercise
-
-
Chapter 3 C# Language Fundamentals
-
Statements
-
Types
-
Variables
-
Definite Assignment
-
Constants
-
Strings
-
Expressions
-
Whitespace
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 4 Operators
-
The Assignment Operator (=)
-
Mathematical Operators
-
Increment and Decrement Operators
-
Relational Operators
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 5 Branching
-
Unconditional Branching Statements
-
Conditional Branching Statements
-
Iteration (Looping) Statements
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 6 Object-Oriented Programming
-
Creating Models
-
Classes and Objects
-
Defining a Class
-
Class Relationships
-
The Three Pillars of Object-Oriented Programming
-
Object-Oriented Analysis and Design
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 7 Classes and Objects
-
Defining Classes
-
Method Arguments
-
Constructors
-
Initializers
-
The this Keyword
-
Static and Instance Members
-
Destroying Objects
-
Memory Allocation: The Stack Versus the Heap
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 8 Inside Methods
-
Overloading Methods
-
Encapsulating Data with Properties
-
Returning Multiple Values
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 9 Basic Debugging
-
Setting a Breakpoint
-
Examining Values: The Autos and Locals Windows
-
Set Your Watch
-
The Call Stack
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 10 Arrays
-
Using Arrays
-
The foreach Statement
-
Initializing Array Elements
-
The params Keyword
-
Multidimensional Arrays
-
Array Methods
-
Sorting Arrays
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 11 Inheritance and Polymorphism
-
Specialization and Generalization
-
Inheritance
-
Polymorphism
-
Abstract Classes
-
Sealed Classes
-
The Root of All Classes: Object
-
Boxing and Unboxing Types
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 12 Operator Overloading
-
Using the operator Keyword
-
Creating Useful Operators
-
The Equals Operator
-
Conversion Operators
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 13 Interfaces
-
Implementing an Interface
-
Implementing More than One Interface
-
Casting to an Interface
-
The is and as Operators
-
Extending Interfaces
-
Combining Interfaces
-
Overriding Interface Implementations
-
Explicit Interface Implementation
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 14 Generics and Collections
-
Generics
-
Collection Interfaces
-
Creating Your Own Collections
-
Framework Generic Collections
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 15 Strings
-
Creating Strings
-
Manipulating Strings
-
Regular Expressions
-
The Regex Class
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 16 Throwing and Catching Exceptions
-
Bugs, Errors, and Exceptions
-
Throwing Exceptions
-
Searching for an Exception Handler
-
The throw Statement
-
The try and catch Statements
-
How the Call Stack Works
-
Creating Dedicated catch Statements
-
The finally Statement
-
Exception Class Methods and Properties
-
Custom Exceptions
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 17 Delegates and Events
-
Delegates
-
Multicasting
-
Events
-
Using Anonymous Methods
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 18 Creating Windows Applications
-
Creating a Simple Windows Form
-
Creating a Real-World Application
-
XML Documentation Comments
-
Summary
-
Quiz
-
Exercises
-
-
Chapter 19 Programming ASP.NET Applications
-
Understanding Web Forms
-
Web Form Events
-
Creating a Web Form
-
Adding Controls
-
Server Controls
-
Data Binding
-
Adding Controls and Events
-
Summary
-
Quiz
-
Exercises
-
-
Appendix A Answers to Quizzes and Exercises
-
Chapter 1: C# and .NET Programming
-
Chapter 2: Visual Studio 2005
-
Chapter 3: C# Language Fundamentals
-
Chapter 4: Operators
-
Chapter 5: Branching
-
Chapter 6: Object-Oriented Programming
-
Chapter 7: Classes and Objects
-
Chapter 8: Inside Methods
-
Chapter 9: Basic Debugging
-
Chapter 10: Arrays
-
Chapter 11: Inheritance and Polymorphism
-
Chapter 12: Operator Overloading
-
Chapter 13: Interfaces
-
Chapter 14: Generics and Collections
-
Chapter 15: Strings
-
Chapter 16: Throwing and Catching Exceptions
-
Chapter 17: Delegates and Events
-
Chapter 18: Creating Windows Applications
-
Chapter 19: Programming ASP.NET Applications
-
-
Colophon
Product Details
- Title:
- Learning C# 2005, Second Edition
- By:
- Jesse Liberty, Brian MacDonald
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- February 2006
- Pages:
- 560
- Print ISBN:
- 978-0-596-10209-8
- | ISBN 10:
- 0-596-10209-7
Customer Reviews
