Programming .NET Components, 2/e (Paperback)
暫譯: 編寫 .NET 元件, 第2版 (平裝本)

Juval Lowy

  • 出版商: O'Reilly
  • 出版日期: 2005-08-30
  • 售價: $1,900
  • 貴賓價: 9.5$1,805
  • 語言: 英文
  • 頁數: 646
  • 裝訂: Paperback
  • ISBN: 0596102070
  • ISBN-13: 9780596102074
  • 相關分類: .NET
  • 已過版

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

商品描述

Description:

Brilliantly compiled by author Juval Lowy, Programming .NET Components, Second Edition is the consummate introduction to the Microsoft .NET Framework--the technology of choice for building components on Windows platforms. From its many lessons, tips, and guidelines, readers will learn how to use the .NET Framework to program reusable, maintainable, and robust components.

Following in the footsteps of its best-selling predecessor, Programming .NET Components, Second Edition has been updated to cover .NET 2.0. It remains one of the few practical books available on this topic. This invaluable resource is targeted at anyone who develops complex or enterprise-level applications with the .NET platform--an ever-widening market. In fact, nearly two million Microsoft developers worldwide now work on such systems.

Programming .NET Components, Second Edition begins with a look at the fundamentals of component-oriented programming and then progresses from there. It takes the time to carefully examine how components can simplify and add flexibility to complex applications by allowing users to extend their capabilities. Next, the book introduces a variety of .NET essentials, as well as .NET development techniques. Within this discussion on component development, a separate chapter is devoted to each critical development feature, including asynchronous calls, serialization, remoting, security, and more. All the while, hazardous programming pitfalls are pointed out, saving the reader from experiencing them the hard way.

A .NET expert and noted authority on component-oriented programming, Lowy uses his unique access to Microsoft technical teams to the best possible advantage, conveying detailed, insider informataion in easy-to-grasp, activity-filled language. This hands-on approach is designed to allow individuals to learn by doing rather than just reading. Indeed, after digesting Programming .NET Components, Second Edition, readers should be able to start developing .NET components immediately.

 

 

Table of Contents:

Preface

1. Introducing Component-Oriented Programming

     Basic Terminology

     Component-Oriented Versus Object-Oriented Programming

     Principles of Component-Oriented Programming

     .NET Adherence to Component Principles

     Developing .NET Components

2. .NET Component-Oriented Programming Essentials

     Language Independence: The CLR

     Packaging and Deployment: Assemblies

     Binary Compatibility

3. Interface-Based Programming

     Separating Interface from Implementation

     Working with Interfaces

     Interfaces and Generics

     Designing and Factoring Interfaces

     Interfaces in Visual Studio 2005

4. Lifecycle Management

     The Managed Heap

     Traditional Memory De-allocation Schemas

     .NET Garbage Collection

     Object Finalization

     Deterministic Finalization

5. Versioning

     Assembly Version Number

     Assembly Deployment Models

     Strong Assembly Names

     Visual Studio 2005 and Versioning

     Custom Version Policies

     CLR Versioning

6. Events

     Delegate-Based Events

     Working with .NET Events

7. Asynchronous Calls

     Requirements for an Asynchronous Mechanism

     Revisiting Delegates

     Asynchronous Call Programming Models

     Asynchronous Error Handling

     Asynchronous Events

     Asynchronous Invocation Pitfalls

     Synchronous Versus Asynchronous Processing

8. Multithreading and Concurrency Management

     Threads and Multithreading

     Components and Threads

     Working with Threads

     Synchronizing Threads

     Automatic Synchronization

     Manual Synchronization

     The WorkerThread Wrapper Class

     Synchronizing Delegates

     Using .NET Multithreading Services

9. Serialization and Persistence

     Automatic Serialization

     Serialization Formatters

     Serialization Events

     Serialization and Streams

     Custom Serialization

     Serialization and Class Hierarchies

10. Remoting

     Application Domains

     Remote Object Types

     Marshaling-by-Reference Activation Modes

     The .NET Remoting Architecture

     Building a Distributed Application

     Leasing and Sponsorship

     .NET and Location Transparency

11. Context and Interception

     .NET Component Services

     The .NET Context

     Custom Component Services

12. Security

     The .NET Security Architecture

     Configuring Permissions

     Programmatic Security

     Visual Studio 2005 and Security

     Principal-Based Security

     Addressing Other Security Issues

A. Interface-Based Web Services

B. Unifying Windows Forms and ASP.NET Security

C. Reflection and Attributes

D. Generics

E. C# Coding Standard

Index

商品描述(中文翻譯)

**描述:**
由作者 Juval Lowy 精心編寫的《Programming .NET Components》(第二版)是 Microsoft .NET Framework 的完美入門書籍——這是構建 Windows 平台上組件的首選技術。讀者將從其中的許多課程、提示和指導中學習如何使用 .NET Framework 來編寫可重用、可維護和穩健的組件。

繼承其暢銷前作的成功,《Programming .NET Components》(第二版)已更新以涵蓋 .NET 2.0。這仍然是該主題上為數不多的實用書籍之一。這本寶貴的資源針對任何使用 .NET 平台開發複雜或企業級應用程序的人——這是一個不斷擴大的市場。事實上,全球近兩百萬名 Microsoft 開發人員目前正在從事這類系統的工作。

《Programming .NET Components》(第二版)首先介紹組件導向編程的基本概念,然後逐步深入。它花時間仔細檢視組件如何通過允許用戶擴展其功能來簡化和增加複雜應用程序的靈活性。接下來,書中介紹了各種 .NET 基本概念以及 .NET 開發技術。在這一關於組件開發的討論中,每個關鍵開發特性都有一個單獨的章節,包括異步調用、序列化、遠程調用、安全性等。同時,書中指出了危險的編程陷阱,幫助讀者避免以艱難的方式經歷這些問題。

作為 .NET 專家和組件導向編程的知名權威,Lowy 利用他對 Microsoft 技術團隊的獨特接觸,充分發揮其優勢,以易於理解、充滿活動的語言傳達詳細的內部信息。這種實踐導向的方法旨在讓個人通過實踐學習,而不僅僅是閱讀。事實上,在消化完《Programming .NET Components》(第二版)後,讀者應該能夠立即開始開發 .NET 組件。

**目錄:**
**前言**
**1. 介紹組件導向編程**
     基本術語
     組件導向與物件導向編程
     組件導向編程原則
     .NET 對組件原則的遵循
     開發 .NET 組件

**2. .NET 組件導向編程要素**
     語言獨立性:CLR
     打包與部署:組件
     二進位相容性

**3. 基於介面的編程**
     分離介面與實現
     使用介面
     介面與泛型
     設計與重構介面
     Visual Studio 2005 中的介面

**4. 生命週期管理**
     受管理的堆
     傳統的記憶體釋放方案
     .NET 垃圾回收
     物件終結
     確定性終結

**5. 版本控制**
     組件版本號
     組件部署模型
     強組件名稱
     Visual Studio 2005 與版本控制
     自定義版本政策
     CLR 版本控制

**6. 事件**
     基於委派的事件
     使用 .NET 事件

**7. 異步調用**
     異步機制的要求
     重新審視委派
     異步調用編程模型
     異步錯誤處理
     異步事件
     異步調用陷阱
     同步與異步處理

**8. 多執行緒與併發管理**
     執行緒與多執行緒
     組件與執行緒
     使用執行緒
     執行緒同步
     自動同步
     手動同步
     WorkerThread 包裝類
     同步委派
     使用 .NET 多執行緒服務

**9. 序列化與持久性**
     自動序列化
     序列化格式化器
     序列化事件
     序列化與流
     自定義序列化
     序列化與類別層次結構

**10. 遠程調用**
     應用程式域
     遠程物件類型
     按引用進行的序列化啟動模式
     .NET 遠程調用架構
     構建分散式應用程式
     租賃與贊助
     .NET 與位置透明性

**11. 上下文與攔截**
     .NET 組件服務
     .NET 上下文
     自定義組件服務

**12. 安全性**
     .NET 安全架構
     配置權限
     程式安全性
     Visual Studio 2005 與安全性
     基於主體的安全性
     解決其他安全問題

**A. 基於介面的網路服務**
**B. 統一 Windows Forms 與 ASP.NET 安全性**
**C. 反射與屬性**
**D. 泛型**
**E. C# 編碼標準**
**索引**