Book description
If you're new to C#, this popular book is the ideal way to get started. Completely revised for the latest version of the language, 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#.
No previous programming experience is required -- in fact, if you've never written a line of code in your life, bestselling authors Jesse Liberty and Brian MacDonald will show you how it's done. Each chapter offers a self-contained lesson to help you master key concepts, with plenty of annotated examples, illustrations, and a concise summary.
With this book, you will:
- Learn how to program as you learn C#
- Grasp the principles of object-oriented programming through C#
- Discover how to use the latest features in C# 3.0 and the .NET 3.5 Framework--including LINQ and the Windows Presentation Foundation (WPF)
- Create Windows applications and data-driven applications
You'll also find a unique Test Your Knowledge section in each chapter, with practical exercises and review quizzes, so you can practice new skills and test your understanding. If you're ready to dive into C# and .NET programming, this book is a great way to quickly get up to speed.
Publisher resources
Table of contents
- Learning C# 3.0
- A Note Regarding Supplemental Files
- Preface
- 1. C# and .NET Programming
-
2. Visual Studio 2008 and C# Express 2008
- Before You Read Further
- The Start Page
- Projects and Solutions
- Inside the Integrated Development Environment
- Building and Running Applications
- Menus
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- 3. C# Language Fundamentals
- 4. Operators
- 5. Branching
- 6. Object-Oriented Programming
- 7. Classes and Objects
- 8. Inside Methods
- 9. Basic Debugging
- 10. Arrays
- 11. Inheritance and Polymorphism
- 12. Operator Overloading
-
13. Interfaces
- What Interfaces Are
- Implementing an Interface
- Implementing More Than One Interface
- Casting to an Interface
- The is and as Operators
- Extending Interfaces
- Combining Interfaces
- Overriding Interface Methods
- Explicit Interface Implementation
- Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- 14. Generics and Collections
- 15. Strings
-
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
- Test Your Knowledge: Quiz
- Test Your Knowledge: Exercises
- 17. Delegates and Events
- 18. Creating Windows Applications
- 19. Windows Presentation Foundation
- 20. ADO.NET and Relational Databases
- 21. LINQ
-
A. Answers to Quizzes and Exercises
- Chapter 1: C# and .NET Programming
- Chapter 2: Visual Studio 2008 and C# Express 2008
- 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: Windows Presentation Foundation
- Chapter 20: ADO.NET and Relational Databases
- Chapter 21: LINQ
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Learning C# 3.0
- Author(s):
- Release date: November 2008
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596554200
You might also like
book
Programming in C#: Exam 70-483 (MCSD) Guide
Acquire necessary skills in preparing for Microsoft certification and enhance your software development career by learning …
book
C# 3.0 Design Patterns
If you want to speed up the development of your .NET applications, you're ready for C# …
book
.NET Programming: A Practical Guide Using C#
Enterprise-class .NET programming in C#—from a developer's perspective. Internals of the .NET Framework—learn to get the …
book
.NET Common Language Runtime Unleashed
The .NET Framework provides a runtime environment called the Common Language Runtime, which manages the execution …