Programming C#, Fourth Edition
Programming C#, the top selling book on Microsoft's high-performance C# programming
language, is now in its fourth edition. Aimed at experienced programmers and web
developers, this comprehensive guide focuses on the features and programming patterns
that are unique to the C#, and fundamental to the programming of web services and
web applications on Microsoft's .NET platform.
|
![]() |
Preface
Part I. The C# Language
1. C# and the .NET Framework
The .NET Platform
The .NET Framework
Compilation and the MSIL
The C# Language
2. Getting Started: "Hello World"
Classes, Objects, and Types
Developing "Hello World"
Using the Visual Studio .NET Debugger
3. C# Language Fundamentals
Types
Variables and Constants
Expressions
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 Classes: Object
Boxing and Unboxing Types
Nesting Classes
6. Operator Overloading
Using the operator Keyword
Supporting Other .NET Languages
Creating Useful Operators
Logical Pairs
The Equality Operator
Conversion Operators
7. Structs
Defining Structs
Creating Structs
8. Interfaces
Defining and Implementing an Interface
Accessing Interface Methods
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. Handling Exceptions
Throwing and Catching Exceptions
Exception Objects
Custom Exceptions
Rethrowing Exceptions
12. Delegates and Events
Delegates
Multicasting
Events
Using Anonymous Methods
Retrieving Values from Multicast Delegates
Part II. Programming with C#
13. Building Windows Applications
Creating a Simple Windows Form
Creating a Windows Forms Application
XML Documentation Comments
14. Accessing Data with ADO.NET
Relational Databases and SQL
The ADO.NET Object Model
Getting Started with ADO.NET
Using OLE DB Managed Providers
Working with Data-Bound Controls
15. Programming ASP.NET Applications and Web Services
Understanding Web Forms
Creating a Web Form
Adding Controls
Data Binding
Web Services
SOAP, WSDL, and Discovery
Building a Web Service
Creating the Proxy
16. Putting It All Together
The Overall Design
Creating the Web Services Client
Displaying the Output
Searching by Category
Part III. The CLR and the .NET Framework
17. Assemblies and Versioning
PE Files
Metadata
Security Boundary
Manifests
Multimodule Assemblies
Private Assemblies
Shared Assemblies
18. Attributes and Reflection
Attributes
Reflection
19. Marshaling and Remoting
Application Domains
Context
Remoting
20. Threads and Synchronization
Threads
Synchronization
Race Conditions and Deadlocks
21. Streams
Files and Directories
Reading and Writing Data
Asynchronous I/O
Network I/O
Web Streams
Serialization
Isolated Storage
22. Programming .NET and COM
Importing ActiveX Controls
Importing COM Components
Exporting .NET Components
P/Invoke
Pointers
Appendix: C# Keywords
Index
См. также: