Buying Options
Learning C# 3.0
Print $39.99
Add to Cart
Print+Ebook $43.99
Add to Cart
Ebook $31.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £30.99
Add to Cart
What is this?
Description
If you're new to C#, Learning C# 3.0 is the ideal way to get started. Learning C# 3.0 starts with the fundamentals and takes you through intermediate and advanced C# features-including generics, interfaces, delegates, lambda expressions, and LINQ. You'll also learn how to build Windows applications and handle data with C#. Each chapter offers a self-contained lesson with plenty of annotated examples, illustrations, and a concise summary. No previous programming experience is required.
Full Description
Table of Contents
  1. Chapter 1 C# and .NET Programming

    1. Installing C# Express

    2. C# 3.0 and .NET 3.5

    3. The .NET Platform

    4. The .NET Framework

    5. The C# Language

    6. Your First Program: Hello World

    7. The Compiler

    8. Examining Your First Program

    9. The Integrated Development Environment

    10. Summary

    11. Test Your Knowledge: Quiz

    12. Test Your Knowledge: Exercise

  2. Chapter 2 Visual Studio 2008 and C# Express 2008

    1. Before You Read Further

    2. The Start Page

    3. Projects and Solutions

    4. Inside the Integrated Development Environment

    5. Building and Running Applications

    6. Menus

    7. Summary

    8. Test Your Knowledge: Quiz

    9. Test Your Knowledge: Exercises

  3. Chapter 3 C# Language Fundamentals

    1. Statements

    2. Types

    3. WriteLine( ) and Output

    4. Variables and Assignment

    5. Casting

    6. Constants

    7. Strings

    8. Whitespace

    9. Summary

    10. Test Your Knowledge: Quiz

    11. Test Your Knowledge: Exercises

  4. Chapter 4 Operators

    1. Expressions

    2. The Assignment Operator (=)

    3. Mathematical Operators

    4. Increment and Decrement Operators

    5. Relational Operators

    6. Logical Operators and Conditionals

    7. The Conditional Operator

    8. Operator Precedence

    9. Summary

    10. Test Your Knowledge: Quiz

    11. Test Your Knowledge: Exercises

  5. Chapter 5 Branching

    1. Unconditional Branching Statements

    2. Conditional Branching Statements

    3. ReadLine( ) and Input

    4. Iteration (Looping) Statements

    5. Summary

    6. Test Your Knowledge: Quiz

    7. Test Your Knowledge: Exercises

  6. Chapter 6 Object-Oriented Programming

    1. Creating Models

    2. Classes and Objects

    3. Defining a Class

    4. Class Relationships

    5. The Three Pillars of Object-Oriented Programming

    6. Object-Oriented Analysis and Design

    7. Summary

    8. Test Your Knowledge: Quiz

    9. Test Your Knowledge: Exercises

  7. Chapter 7 Classes and Objects

    1. Defining Classes

    2. Method Arguments

    3. Return Types

    4. Constructors

    5. Initializers

    6. Object Initializers

    7. Anonymous Types

    8. The this Keyword

    9. Static and Instance Members

    10. Finalizing Objects

    11. Memory Allocation: The Stack Versus the Heap

    12. Summary

    13. Test Your Knowledge: Quiz

    14. Test Your Knowledge: Exercises

  8. Chapter 8 Inside Methods

    1. Overloading Methods

    2. Encapsulating Data with Properties

    3. Returning Multiple Values

    4. Summary

    5. Test Your Knowledge: Quiz

    6. Test Your Knowledge: Exercises

  9. Chapter 9 Basic Debugging

    1. Setting a Breakpoint

    2. Examining Values: The Autos and Locals Windows

    3. Setting Your Watch

    4. The Call Stack

    5. Stopping Debugging

    6. Summary

    7. Test Your Knowledge: Quiz

    8. Test Your Knowledge: Exercises

  10. Chapter 10 Arrays

    1. Using Arrays

    2. The foreach Statement

    3. Initializing Array Elements

    4. The params Keyword

    5. Multidimensional Arrays

    6. Array Methods

    7. Sorting Arrays

    8. Summary

    9. Test Your Knowledge: Quiz

    10. Test Your Knowledge: Exercises

  11. Chapter 11 Inheritance and Polymorphism

    1. Specialization and Generalization

    2. Inheritance

    3. Polymorphism

    4. Abstract Classes

    5. Sealed Classes

    6. The Root of All Classes: Object

    7. Summary

    8. Test Your Knowlege: Quiz

    9. Test Your Knowledge: Exercises

  12. Chapter 12 Operator Overloading

    1. Designing the Fraction Class

    2. Using the operator Keyword

    3. Creating Useful Operators

    4. The Equals Operator

    5. Conversion Operators

    6. Summary

    7. Test Your Knowledge: Quiz

    8. Test Your Knowledge: Exercises

  13. Chapter 13 Interfaces

    1. What Interfaces Are

    2. Implementing an Interface

    3. Implementing More Than One Interface

    4. Casting to an Interface

    5. The is and as Operators

    6. Extending Interfaces

    7. Combining Interfaces

    8. Overriding Interface Methods

    9. Explicit Interface Implementation

    10. Summary

    11. Test Your Knowledge: Quiz

    12. Test Your Knowledge: Exercises

  14. Chapter 14 Generics and Collections

    1. Generics

    2. Collection Interfaces

    3. Creating Your Own Collections

    4. Framework Generic Collections

    5. Summary

    6. Test Your Knowledge: Quiz

    7. Test Your Knowledge: Exercises

  15. Chapter 15 Strings

    1. Creating Strings

    2. Manipulating Strings

    3. Regular Expressions

    4. The Regex Class

    5. Summary

    6. Test Your Knowledge: Quiz

    7. Test Your Knowledge: Exercises

  16. Chapter 16 Throwing and Catching Exceptions

    1. Bugs, Errors, and Exceptions

    2. Throwing Exceptions

    3. Searching for an Exception Handler

    4. The throw Statement

    5. The try and catch Statements

    6. How the Call Stack Works

    7. Creating Dedicated catch Statements

    8. The finally Statement

    9. Exception Class Methods and Properties

    10. Custom Exceptions

    11. Summary

    12. Test Your Knowledge: Quiz

    13. Test Your Knowledge: Exercises

  17. Chapter 17 Delegates and Events

    1. Delegates

    2. Using Anonymous Methods

    3. Lambda Expressions

    4. Summary

    5. Test Your Knowledge: Quiz

    6. Test Your Knowledge: Exercises

  18. Chapter 18 Creating Windows Applications

    1. Creating a Simple Windows Form

    2. Creating a Real-World Application

    3. Source Code

    4. Summary

    5. Test Your Knowledge: Quiz

    6. Test Your Knowledge: Exercises

  19. Chapter 19 Windows Presentation Foundation

    1. Your First WPF Application

    2. WPF Differences from Windows Forms

    3. Using Resources

    4. Animations

    5. C# and WPF

    6. Summary

    7. Test Your Knowledge: Quiz

    8. Test Your Knowledge: Exercises

  20. Chapter 20 ADO.NET and Relational Databases

    1. Relational Databases and SQL

    2. The ADO.NET Object Model

    3. Getting Started with ADO.NET

    4. Summary

    5. Test Your Knowledge: Quiz

    6. Test Your Knowledge: Exercises

  21. Chapter 21 LINQ

    1. Querying In-Memory Data

    2. Anonymous Types and Implicitly Typed Variables

    3. Lambda Expressions

    4. Ordering and Joining

    5. Using LINQ with SQL

    6. Using the Object Relational Designer

    7. Summary

    8. Test Your Knowledge: Quiz

    9. Test Your Knowledge: Exercises

  1. Appendix Answers to Quizzes and Exercises

    1. Chapter 1: C# and .NET Programming

    2. Chapter 2: Visual Studio 2008 and C# Express 2008

    3. Chapter 3: C# Language Fundamentals

    4. Chapter 4: Operators

    5. Chapter 5: Branching

    6. Chapter 6: Object-Oriented Programming

    7. Chapter 7: Classes and Objects

    8. Chapter 8: Inside Methods

    9. Chapter 9: Basic Debugging

    10. Chapter 10: Arrays

    11. Chapter 11: Inheritance and Polymorphism

    12. Chapter 12: Operator Overloading

    13. Chapter 13: Interfaces

    14. Chapter 14: Generics and Collections

    15. Chapter 15: Strings

    16. Chapter 16: Throwing and Catching Exceptions

    17. Chapter 17: Delegates and Events

    18. Chapter 18: Creating Windows Applications

    19. Chapter 19: Windows Presentation Foundation

    20. Chapter 20: ADO.NET and Relational Databases

    21. Chapter 21: LINQ

  2. Colophon

View Full Table of Contents
Product Details
Title:
Learning C# 3.0
By:
Jesse Liberty, Brian MacDonald
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
November 2008
Ebook Release:
November 2008
Pages:
704
Print ISBN:
978-0-596-52106-6
| ISBN 10:
0-596-52106-5
Ebook ISBN:
978-0-596-15683-1
| ISBN 10:
0-596-15683-9
Customer Reviews
About the Authors
  1. Jesse Liberty

    Jesse Liberty is a Microsoft Senior Program Manager where he is responsible for the creation of tutorials, videos and other content to facilitate the learning and use of Silverlight. Even before joining Microsoft, Jesse was well known in the industry in part because of his many bestselling books, including O'Reilly Media's Programming .NET 3.5, Programming C# 3.0, Learning ASP.NET with AJAX and the soon to be published Programming Silverlight.

    View Jesse Liberty's full profile page.

  2. Brian MacDonald

    Brian MacDonald has edited programming and networking books for major publishers on topics ranging from securing Windows servers to PHP web programming to running an eBay business. He also coauthored O'Reilly's Learning C# 2005 and Learning ASP.NET 2.0 with AJAX.

    View Brian MacDonald's full profile page.

Colophon

The animal on the cover of Learning C# 3.0 is a butterflyfish, which is a tropical marine fish from the family Chaetodontidae. Butterflyfish live mainly among the reefs of the Atlantic, Pacific, and Indian oceans. Occasionally mistaken for angelfish (the angelfish is larger), butterflyfish can be recognized by their contrasting color patterns of black, orange, blue, red, or yellow. Their vibrant colors also make them a popular aquarium attraction.

Although the fish are striking in appearance, many species of butterflyfish do have the ability to fool their predators. In addition to swimming nimbly through coral reefs, the four-eyed butterflyfish is so named because of a large dark spot surrounded by a white ring on each side of the back of its body; predators often mistake these prominent dark spots for the butterflyfish's eyes, which are smaller and partly obscured by a dark, vertical stripe.

While some butterflyfish never mate, others in the species will find a partner and remain monogamous for the rest of their lives. Once partnered, the two butterflyfish will find an area of coral reef that is suitable for them and will defend their home from others of its kind by changing the colors on their bodies, an act that is interpreted by intruders as an aggressive maneuver.

For food, the butterfly fish will peck at coral and rock formations and eat polyps, worms, and various small invertebrates. The fish's particular eating habits may ultimately drive it to extinction, some scientists say, as coral reefs are deteriorating because of overexploitation by humans, pollution, and climate change.

The cover image is from Johnson's Natural History. The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSansMonoCondensed.

  • Book cover of Learning C# 3.0