C# in a Nutshell, 2/e

Peter Drayton, Ben Albahari, Ted Neward

  • 出版商: O'Reilly
  • 出版日期: 2003-09-07
  • 售價: $1,700
  • 貴賓價: 9.5$1,615
  • 語言: 英文
  • 頁數: 928
  • 裝訂: Paperback
  • ISBN: 0596005261
  • ISBN-13: 9780596005269
  • 相關分類: C#
  • 已過版

買這商品的人也買了...

商品描述

The heart of C# in a Nutshell is a succinct but detailed reference to the C# language and the .NET types most essential to C# programmers. Each chapter in the API reference begins with an overview of a .NET namespace and a diagram of its types, including a quick-reference entry for each type, with name, assembly, category, description, member availability, class hierarchy, and other relevant information, such as whether the type is part o the ECMA CLI specification. Newly updated for .NET Framework version 1.1, the second edition also adds a CD that allows you to integrate the book's API Quick Reference directly into the help files of Visual Studio .NET 2002 & 2003, giving you direct access to this valuable information via your computer.

Table of Contents

Preface


I. Programming with C#

1. Introducing C# and the .NET Framework

     The C# Language

     The .NET Framework

     ECMA Standardization

     Changes in Visual C# 2003

2. C# Language Basics

     A First C# Program

     Identifiers and Keywords

     Type Basics

     Value Types and Reference Types

     Predefined Types

     Arrays

     Variables and Parameters

     Expressions and Operators

     Statements

     Namespaces

3. Creating Types in C#

     Classes

     Inheritance

     Access Modifiers

     Structs

     Interfaces

     Enums

4. Advanced C# Features

     Delegates

     Delegates Versus Function Pointers

     Delegates Versus Interfaces

     Events

     Operator Overloading

     Try Statements and Exceptions

     Attributes

     Unsafe Code and Pointers

     Preprocessor Directives

     XML Documentation


II. Programming with the .NET Framework

5. Framework Class Library Overview

     Core Types

     Text

     Collections

     Streams and I/O

     Networking

     Threading

     Security

     Reflection and Metadata

     Assemblies

     Serialization

     Remoting

     Web Services

     Data Access

     XML

     Graphics

     Rich Client Applications

     Web-Based Applications

     Globalization

     Configuration

     Advanced Component Services

     Diagnostics and Debugging

     Interoperating with Unmanaged Code

     Compiler and Tool Support

     Runtime Facilities

     Native OS Facilities

     Undocumented Types

6. String Handling

     String Class

     StringBuilder Class

     Regular Expression Support

     Regular Expression Basics

     Procedural- and Expression-Based Patterns

     Cookbook Regular Expressions

7. Collections

     Iterating Over Collections

     Standard Collection Interfaces

     Predefined Collection Classes

     Ordering Instances

     Generating Hash Code

8. XML I/O

     Accessing XML Documents

     Parsing an XML Stream

     Selecting Nodes Using XPath

     Transforming a Document Using XSLT

9. Networking

     Network Programming Models

     Generic Request/Response Architecture

     HTTP-Specific Support

     WebClient

     Adding New Protocol Handlers

     Using TCP, UDP, and Sockets

     Using DNS

10. Streams and I/O

     Streams and Backing Stores

     Encapsulating Raw Streams

     Directories and Files

     Isolated Storage

11. Serialization

     What Is Serialization?

     Serialization Support in the Framework

     Explicit Serialization

     Implicit Serialization

     [Serializable]

     [NonSerialized]

     IDeserializationCallback

     ISerializable

     [Serializable] and ISerializable

12. Assemblies

     Elements of an Assembly

     Assemblies and Modules

     Scoping Types and Type References

     Naming and Signing Assemblies

     Resolving and Loading Assemblies

     Deployment

     Security Permissions

13. Reflection

     Type Hierarchy

     Types, Members, and Nested Types

     Retrieving the Type for an Instance

     Retrieving a Type Directly

     Reflecting Over a Type Hierarchy

     Late Binding

     Advanced Uses of Reflection

     Creating New Types at Runtime

14. Custom Attributes

     Language Support

     Compiler Support

     Runtime Support

     Predefined Attributes

     Defining a New Custom Attribute

     Retrieving a Custom Attribute at Runtime

15. Memory Management

     The Garbage Collector

     Optimization Techniques

     Finalizers

     Dispose and Close Methods

16. Threading

     Thread Synchronization

     Common Thread Types

     Asynchronous Delegates

17. Integrating with Native DLLs

     Calling Into DLLs

     Marshaling Common Types

     Marshaling Classes and Structs

     In and Out Marshaling

     Callbacks from Unmanaged Code

     Simulating a C Union

     Mapping a Struct to a Binary Format

     Predefined Interop Support Attributes

18. Integrating with COM Components

     Binding COM and C# Objects

     Exposing COM Objects to C#

     Exposing C# Objects to COM

     COM Mapping in C#

     Common COM Interop Support Attributes

     COM+ Support

19. Diagnostics

     Logging and Assertion Facilities

     Conditional Compilation

     Debugger Integration

     Processes, Threads, and Stacks

     Event Logs

     Performance Counters

20. C# Language Reference


III. Language and Tools Reference

21. XML Documentation Tag Reference

22. C# Naming and Coding Conventions

     Case

     Mechanics

     Word Choice

     Namespaces

23. C# Development Tools


IV. API Quick Reference


24. How to Use This Quick Reference

25. The Microsoft.Win32 Namespace

26. System

27. System.Collections

28. System.Collections.Specialized

29. System.Diagnostics

30. System.Globalization

31. System.IO

32. System.IO.IsolatedStorage

33. System.Net

34. System.Net.Sockets

35. System.Reflection

36. System.Reflection.Emit

37. System.Runtime.InteropServices

38. System.Runtime.Serialization

39. System.Runtime.Serialization.Formatters

40. System.Text

41. System.Text.RegularExpressions

42. System.Threading

43. System.Timers

44. System.Xml

45. System.Xml.XPath

46. System.Xml.Xsl


V. Appendixes

A. Regular Expressions

B. Format Specifiers

C. Data Marshaling

D. C# Keywords

E. Namespaces and Assemblies

Type, Method, Property, Event, and Field Index


Index