|
Programming C# 3.0 5th Edition
Written by popular author and .NET expert Jesse Liberty,
this thoroughly updated tutorial for beginning to
intermediate programmers covers the latest release of
Microsoft's popular C# language (C# 3.0) and the newest .NET
platform for developing Windows and web applications.
Our bestselling Programming C# 3.0, now in
its fifth
edition, is a world-class tutorial that goes well beyond the
documentation otherwise available. Liberty doesn't just
teach C#; he tells the complete story of the C# language and
how it integrates with all of .NET programming, so that you
can get started creating professional quality web and
Windows applications.
This book:
Provides a comprehensive tutorial in C# and .NET programming
that also serves as a useful reference you'll want by your
side while you're working
Covers all of the new features of the language, thoroughly
integrated into every chapter, rather than tacked on at the
end
Provides insight into best practices and insight into real
world programming by a professional programmer who worked
with C# as an independent contractor for nearly a decade
before joining Microsoft as a Senior Program Manager
Every chapter in this book has been totally revised, and the
entire book has been reorganized to respond to the
significant changes in the language
Full coverage, from the ground up of LINQ (Language
Integrated Query) and other C# 3.0 language innovations to
speed up development tasks
Explains how to use C# in creating Web Applications as well
as Windows Applications, using both the new Windows
Presentation Foundation (WPF) and the older WinForms
technology
This new edition of Programming C# 3.0 is for working
programmers who want to develop proficiency in Microsoft's
most important language. No prior .NET experience is
required for you to get started. There's no time like the
present to work with C# -- and no book like this one to
teach you everything you need to know.
Special note to VB6 and Java programmers: if you've decided
to transition to .NET, this book will take you there.
CONTENTS:
Preface
Part I. The C# Language
1. C# 3.0 and .NET 3.5
The Evolution of C#
The C# Language
The .NET Platform
2. Getting Started: "Hello World"
Classes, Objects, and Types
Developing "Hello World"
Using the Visual Studio 2008 Debugger
3. C# Language Fundamentals
Types
Variables and Constants
Whitespace
Statements
Operators
Preprocessor Directives
4. Classes and Objects
Defining Classes
Creating Objects
Using Static Members
Destroying Objects
Passing Parameters
Overloading Methods and Constructors
Encapsulating Data with Properties
readonly Fields
5. Inheritance and Polymorphism
Specialization and Generalization
Inheritance
Polymorphism
Abstract Classes
The Root of All Types: Object
Nesting Classes
6. Operator Overloading
Using the operator Keyword
Supporting Other .NET Languages
Creating Useful Operators
Logical Pairs
The Equality Operator
Conversion Operators
Putting Operators to Work
7. Structs
Defining Structs
Creating Structs
8. Interfaces
Defining and Implementing an Interface
Overriding Interface Implementations
Explicit Interface Implementation
9. Arrays, Indexers, and Collections
Arrays
The foreach Statement
Indexers
Collection Interfaces
Constraints
List<T>
Queues
Stacks
Dictionaries
10. Strings and Regular Expressions
Strings
Regular Expressions
11. Exceptions
Throwing and Catching Exceptions
Exception Objects
12. Delegates and Events
Events
Events and Delegates
Anonymous Methods
Part II. C# and Data
13. Introducing LINQ
Defining and Executing a Query
LINQ and C#
Anonymous Types
Implicitly Typed Local Variables
Extension Methods
Lambda Expressions in LINQ
14. Working with XML
XML Basics (A Quick Review)
X Stands for eXtensible
Creating XML Documents
Searching in XML with XPath
Searching Using XPathNavigator
XML Serialization
15. Putting LINQ to Work
Getting Set Up
LINQ to SQL Fundamentals
Using Visual Studio LINQ to SQL Designer
Retrieving Data
Updating Data Using LINQ to SQL
Deleting Relational Data
LINQ to XML
16. ADO.NET and Relational Databases
Relational Databases and SQL
The ADO.NET Object Model
Getting Started with ADO.NET
Part III. Programming with C#
17. Programming ASP.NET Applications
Web Forms Fundamentals
Creating a Web Form
Data Binding
18. Programming WPF Applications
WPF in a Very Small Nutshell
Building the Application
What Have You Learned, Dorothy?
19. Programming Windows Forms Applications
Creating the Application
Part IV. The CLR and the .NET Framework
20. Attributes and Reflection
Attributes
Reflection
21. Threads and Synchronization
Threads
Synchronization
Race Conditions and Deadlocks
22. Streams
Files and Directories
Reading and Writing Data
Asynchronous I/O
Network I/O
Web Streams
Serialization
Isolated Storage
23. Programming .NET and COM
Importing ActiveX Controls
P/Invoke
Pointers
C# Keywords
Index
|