Professional .NET 2.0 Generics
暫譯: 專業 .NET 2.0 泛型

Tod Golding

  • 出版商: Wrox Press
  • 出版日期: 2005-10-17
  • 售價: $1,620
  • 貴賓價: 9.5$1,539
  • 語言: 英文
  • 頁數: 408
  • 裝訂: Paperback
  • ISBN: 0764559885
  • ISBN-13: 9780764559884
  • 相關分類: .NET
  • 已過版

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

相關主題

商品描述

Description:

The power and elegance of generic types have long been acknowledged. Generics allow developers to parameterize data types much like you would parameterize a method. This brings a new dimension of reusability to your types without compromising expressiveness, type-safety, or efficiency. Now .NET generics makes this power available to all .NET developers. By introducing generic concepts directly into the Common Language Runtime (CLR), Microsoft has also created the first language-independent generics implementation. The result is a solution that allows generic types to be leveraged by all the languages of the .NET platform.

This book explores all aspects of the .NET generics implementation, covering everything from fundamental generic concepts, to the elements of generic syntax, to a broader view of how and when you might apply generics. It digs into the details associated with creating and consuming your own generic classes, structures, methods, delegates, and interfaces, examining all the nuances associated with leveraging each of these language constructs. The book also looks at guidelines for working with generic types, the performance gains achieved with generics, the new generic container libraries (BCL and third party), and key aspects of the underlying .NET implementation.

For those transitioning from C++, the book provides an in-depth look at the similarities and differences between templates and.NET generics. It also explores the syntactic variations associated with using generics with each of the .NET languages, including C#, Visual Basic, J#, and C++.

 

Table of Contents:

Acknowledgments.

Introduction.

Chapter 1: Generics 101.

Chapter 2: Valuing Type Safety.

Chapter 3: Generics ≠ Templates.

Chapter 4: Generic Classes.

Chapter 5: Generic Methods.

Chapter 6: Generic Delegates.

Chapter 7: Generic Constraints.

Chapter 8: BCL Generics.

Chapter 9: Reflection, Serialization, and Remoting.

Chapter 10: Generics Guidelines.

Chapter 11: Under the Hood.

Chapter 12: Using Generics with C++.

Chapter 13: Using Generics with J#.

Chapter 14: Power Collections.

Index.

商品描述(中文翻譯)

**描述:**
泛型的強大與優雅早已受到認可。泛型允許開發者像參數化方法一樣參數化資料類型。這為您的類型帶來了新的可重用性維度,而不會妥協表達能力、類型安全性或效率。現在,.NET 泛型使這種力量對所有 .NET 開發者可用。透過將泛型概念直接引入通用語言執行時 (CLR),微軟也創造了第一個語言獨立的泛型實現。其結果是一個解決方案,允許所有 .NET 平台的語言利用泛型類型。

本書探討了 .NET 泛型實現的各個方面,涵蓋從基本的泛型概念到泛型語法的元素,再到如何以及何時應用泛型的更廣泛視角。它深入研究了創建和使用您自己的泛型類別、結構、方法、委派和介面的相關細節,檢視利用這些語言結構的所有細微差別。本書還探討了使用泛型類型的指導方針、泛型所帶來的性能提升、新的泛型容器庫(BCL 和第三方)以及底層 .NET 實現的關鍵方面。

對於從 C++ 過渡的讀者,本書深入探討了模板和 .NET 泛型之間的相似性和差異。它還探討了在每種 .NET 語言中使用泛型的語法變化,包括 C#、Visual Basic、J# 和 C++。

**目錄:**
- 感謝詞
- 介紹
- 第 1 章:泛型 101
- 第 2 章:重視類型安全
- 第 3 章:泛型 ≠ 模板
- 第 4 章:泛型類別
- 第 5 章:泛型方法
- 第 6 章:泛型委派
- 第 7 章:泛型約束
- 第 8 章:BCL 泛型
- 第 9 章:反射、序列化與遠端調用
- 第 10 章:泛型指導方針
- 第 11 章:內部運作
- 第 12 章:在 C++ 中使用泛型
- 第 13 章:在 J# 中使用泛型
- 第 14 章:強大集合
- 索引

最後瀏覽商品 (20)