Liberty J., Xie D. - Programming C# 3.0, 5th Edition

Liberty J., Xie D. - Programming C# 3.0, 5th Edition
Liberty J., Xie D. - Programming C# 3.0, 5th Edition
5.3 MB
Programming C# 3.0, Fifth Edition. Examples
Год: 2008
Автор: Jesse Liberty and Donald Xie
Издательство: O'Reilly Media
ISBN: 0-596-52743-8
Формат: PDF
Качество: eBook (изначально компьютерное)
Количество страниц: 607
Описание: 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 inMicrosoft'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.
Table of Contents
Part 1: The C# Language
Chapter 1. C# 3.0 and .NET 3.5
Section 1.1. The Evolution of C#
Section 1.2. The C# Language
Section 1.3. The .NET Platform
Chapter 2. Getting Started: "Hello World"
Section 2.1. Classes, Objects, and Types
Section 2.2. Developing "Hello World"
Section 2.3. Using the Visual Studio 2008 Debugger
Chapter 3. C# Language Fundamentals
Section 3.1. Types
Section 3.2. Variables and Constants
Section 3.3. Whitespace
Section 3.4. Statements
Section 3.5. Operators
Section 3.6. Preprocessor Directives
Chapter 4. Classes and Objects
Section 4.1. Defining Classes
Section 4.2. Creating Objects
Section 4.3. Using Static Members
Section 4.4. Destroying Objects
Section 4.5. Passing Parameters
Section 4.6. Overloading Methods and Constructors
Section 4.7. Encapsulating Data with Properties
Section 4.8. readonly Fields
Chapter 5. Inheritance and Polymorphism
Section 5.1. Specialization and Generalization
Section 5.2. Inheritance
Section 5.3. Polymorphism
Section 5.4. Abstract Classes
Section 5.5. The Root of All Types: Object
Section 5.6. Nesting Classes
Chapter 6. Operator Overloading
Section 6.1. Using the operator Keyword
Section 6.2. Supporting Other .NET Languages
Section 6.3. Creating Useful Operators
Section 6.4. Logical Pairs
Section 6.5. The Equality Operator
Section 6.6. Conversion Operators
Section 6.7. Putting Operators to Work
Chapter 7. Structs
Section 7.1. Defining Structs
Section 7.2. Creating Structs
Chapter 8. Interfaces
Section 8.1. Defining and Implementing an Interface
Section 8.2. Overriding Interface Implementations
Section 8.3. Explicit Interface Implementation
Chapter 9. Arrays, Indexers, and Collections
Section 9.1. Arrays
Section 9.2. The foreach Statement
Section 9.3. Indexers
Section 9.4. Collection Interfaces
Section 9.5. Constraints
Section 9.6. List<T>
Section 9.7. Queues
Section 9.8. Stacks
Section 9.9. Dictionaries
Chapter 10. Strings and Regular Expressions
Section 10.1. Strings
Section 10.2. Regular Expressions
Chapter 11. Exceptions
Section 11.1. Throwing and Catching Exceptions
Section 11.2. Exception Objects
Chapter 12. Delegates and Events
Section 12.1. Events
Section 12.2. Events and Delegates
Section 12.3. Anonymous Methods
Part 2: C# and Data
Chapter 13. Introducing LINQ
Section 13.1. Defining and Executing a Query
Section 13.2. LINQ and C#
Section 13.3. Anonymous Types
Section 13.4. Implicitly Typed Local Variables
Section 13.5. Extension Methods
Section 13.6. Lambda Expressions in LINQ
Chapter 14. Working with XML
Section 14.1. XML Basics (A Quick Review)
Section 14.2. X Stands for eXtensible
Section 14.3. Creating XML Documents
Section 14.4. Searching in XML with XPath
Section 14.5. Searching Using XPathNavigator
Section 14.6. XML Serialization
Chapter 15. Putting LINQ to Work
Section 15.1. Getting Set Up
Section 15.2. LINQ to SQL Fundamentals
Section 15.3. Using Visual Studio LINQ to SQL Designer
Section 15.4. Retrieving Data
Section 15.5. Updating Data Using LINQ to SQL
Section 15.6. Deleting Relational Data
Section 15.7. LINQ to XML
Chapter 16. ADO.NET and Relational Databases
Section 16.1. Relational Databases and SQL
Section 16.2. The ADO.NET Object Model
Section 16.3. Getting Started with ADO.NET
Part 3: Programming with C#
Chapter 17. Programming ASP.NET Applications
Section 17.1. Web Forms Fundamentals
Section 17.2. Creating a Web Form
Section 17.3. Data Binding
Chapter 18. Programming WPF Applications
Section 18.1. WPF in a Very Small Nutshell
Section 18.2. Building the Application
Section 18.3. What Have You Learned, Dorothy?
Chapter 19. Programming Windows Forms Applications
Section 19.1. Creating the Application
Part 4: The CLR and the .NET Framework
Chapter 20. Attributes and Reflection
Section 20.1. Attributes
Section 20.2. Reflection
Chapter 21. Threads and Synchronization
Section 21.1. Threads
Section 21.2. Synchronization
Section 21.3. Race Conditions and Deadlocks
Chapter 22. Streams
Section 22.1. Files and Directories
Section 22.2. Reading and Writing Data
Section 22.3. Asynchronous I/O
Section 22.4. Network I/O
Section 22.5. Web Streams
Section 22.6. Serialization
Section 22.7. Isolated Storage
Chapter 23. Programming .NET and COM
Section 23.1. Importing ActiveX Controls
C# Keywords
Примеры страниц