C# 2005 Programmer's Reference (Paperback)
暫譯: C# 2005 程式設計師參考手冊 (平裝本)

Adrian Kingsley-Hughes, Kathie Kingsley-Hughes

  • 出版商: Wrox Press
  • 出版日期: 2006-11-06
  • 售價: $1,610
  • 貴賓價: 9.5$1,530
  • 語言: 英文
  • 頁數: 386
  • 裝訂: Paperback
  • ISBN: 0470046414
  • ISBN-13: 9780470046418
  • 相關分類: C#
  • 已過版

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

商品描述

Description

* Offering a full and detailed examination as well as a comprehensive overview of one of the hottest programming languages in use, this book includes coverage of the basics of C# programming while still offering in-depth content for more advanced developers
* Filled with code examples and best methods for mastering the new features of C#, this tutorial looks at the complex array of new language options and parameters offered with the C# 2005 release
* This book is the perfect complement to both Beginning Visual C# 2005
(0764578472) and Professional C# 2005 (0764575341)

Table of Contents

Acknowledgments.

Introduction.

How This Book Is Different.

Who This Book Is For.

How This Book Is Structured.

How to Tackle the Chapters.

A Few Tips.

Conventions.

Source Code.

Errata.

p2p.wrox.com.

Chapter 1: What is C#?

The Name.

C# Overview.

Sample C# Code.

The Benefits of Learning C#.

Chapter 2: Getting Started with C#.

Getting Into C# is Cheaper Than You Think!

One Cheap Utility That Makes Life Easier!

Alternative Text Editors and C# Tools.

Enterprise Tools - Visual Studio and Visual C#.

Chapter 3: Overview of C#.

C#.

C# Basics.

Examining the C# Source Code.

Types.

Variables and Parameters.

Expressions.

Statements.

Classes.

Structs.

Interfaces.

Delegates.

Enums.

Generics.

Iterators.

Nullable Types.

Chapter 4: C# Language Structure.

C# Programs.

Grammars.

Chapter 5: C# Concepts.

Application Startup.

Application Termination.

C# Declarations.

Members.

Member Access.

Signatures.

Scope.

Namespace and Type Names.

Memory Management in C#.

Chapter 6: Types.

Three Types of Types.

The C# Type System.

Value Types.

Reference Types.

Chapter 7: Variables.

What are Variables?

Categories of Variables.

Default Values.

Definite Assignment.

Chapter 8: Conversions.

Implicit Conversions.

Explicit Conversions.

Standard Conversions.

Anonymous Method Conversions.

Method Group Conversions.

Null Type Conversions.

Chapter 9: Expressions.

Classifications of Expressions.

Expression Values.

Expressions and Operators.

Member Lookup.

Function Members.

Primary Expressions.

Unary Expressions.

Cast Expressions.

Arithmetic Operators.

Shift Operators.

Relational/Type Testing Operators.

Logical Operators.

Conditional Logical Operators.

Null Coalescing Operator.

Assignment Operators.

Expression.

Constant Expressions.

Boolean Expressions.

Chapter 10: Statements.

What are Statements?

C# Statements.

Code Blocks.

Empty Statements.

Labeled Statements.

Declaration Statements.

Expression Statements.

Chapter 11: Namespaces.

What are Namespaces?

Compilation Units.

Namespace Declarations.

Extern Alias Directives.

Using Directives.

Chapter 12: Classes.

What are Classes?

Class Declarations.

Class Members.

Fields.

Methods.

Properties.

Events.

Indexers.

Operators.

Instance Constructors.

Static Constructors.

Finalizers.

Chapter 13: Structs.

What are Structs?

Struct Declarations.

Differences Between Class and Struct.

When to Use Structs.

Chapter 14: Arrays.

What is an Array?

Array Types.

Creating Arrays.

Chapter 15: Interfaces.

What is an Interface?

Defining an Interface.

Interface Declarations.

Chapter 16: Enums.

Enum Declarations.

Enum Modifiers.

Enum Members.

Beware Circular References.

System.Enum.

Chapter 17: Delegates.

Delegates in Action.

Delegate Declarations.

Chapter 18: Exceptions.

Throwing Exceptions.

System.Exception.

Common Exception Classes.

Handling Exceptions.

Chapter 19: Attributes.

Introduction to Attributes.

Attribute Classes.

Attribute Specification.

Attribute Instances.

Reserved Attributes.

Chapter 20: Generics.

C# Generics vs. C++ Templates.

Generic Class Declarations.

Generic Struct Declarations.

Generic Interface Declarations.

Explicit Interface Member Implementations.

Generic Delegate Declarations.

Constructed Types.

Where Generics Aren’t Used.

Constraints.

Chapter 21: Iterators.

Iterator Block.

Enumerator Objects.

Enumerable Objects.

Chapter 22: Unsafe Code.

What is Unsafe Code?

Advantages and Disadvantages of Unsafe Code.

Unsafe Code Contexts.

Pointer Basics.

Unsafe in Action.

sizeof Operator.

Using stackalloc.

Compiling Unsafe Code.

Appendix A: C# Grammar.

Appendix B: Naming Conventions.

Appendix C: Standard Library.

Appendix D: Portability.

Appendix E: XML Documentation Comments.

Index.

商品描述(中文翻譯)

**描述**

* 本書對於當前最熱門的程式語言之一進行了全面且詳細的檢視,涵蓋了 C# 程式設計的基礎知識,同時也為更高級的開發者提供了深入的內容。
* 本書充滿了程式碼範例和掌握 C# 新功能的最佳方法,探討了 C# 2005 版本所提供的複雜新語言選項和參數。
* 本書是《Beginning Visual C# 2005》(0764578472)和《Professional C# 2005》(0764575341)的完美補充。

**目錄**

致謝。

介紹。

本書的不同之處。

本書的讀者對象。

本書的結構。

如何處理各章節。

一些小提示。

慣例。

原始碼。

勘誤表。

p2p.wrox.com。

第 1 章:什麼是 C#?

名稱。

C# 概述。

範例 C# 程式碼。

學習 C# 的好處。

第 2 章:開始使用 C#。

進入 C# 的成本比你想的便宜!

一個讓生活更輕鬆的便宜工具!

替代文本編輯器和 C# 工具。

企業工具 - Visual Studio 和 Visual C#。

第 3 章:C# 概述。

C#。

C# 基礎。

檢視 C# 原始碼。

類型。

變數和參數。

表達式。

語句。

類別。

結構。

介面。

委派。

列舉。

泛型。

迭代器。

可空類型。

第 4 章:C# 語言結構。

C# 程式。

語法。

第 5 章:C# 概念。

應用程式啟動。

應用程式終止。

C# 聲明。

成員。

成員訪問。

簽名。

範圍。

命名空間和類型名稱。

C# 中的記憶體管理。

第 6 章:類型。

三種類型。

C# 類型系統。

值類型。

引用類型。

第 7 章:變數。

什麼是變數?

變數的類別。

預設值。

確定性賦值。

第 8 章:轉換。

隱式轉換。

顯式轉換。

標準轉換。

匿名方法轉換。

方法組轉換。

空類型轉換。

第 9 章:表達式。

表達式的分類。

表達式值。

表達式和運算子。

成員查找。

函數成員。

主要表達式。

一元表達式。

轉換表達式。

算術運算子。

位移運算子。

關係/類型測試運算子。

邏輯運算子。

條件邏輯運算子。

空合併運算子。

賦值運算子。

表達式。

常數表達式。

布林表達式。

第 10 章:語句。

什麼是語句?

C# 語句。

程式碼區塊。

空語句。

標籤語句。

聲明語句。

表達式語句。

第 11 章:命名空間。

什麼是命名空間?

編譯單元。

命名空間聲明。

外部別名指令。

使用指令。

第 12 章:類別。

什麼是類別?

類別聲明。

類別成員。

欄位。

方法。

屬性。

事件。

索引器。

運算子。

實例建構函數。

靜態建構函數。

終結器。

第 13 章:結構。

什麼是結構?

結構聲明。

類別和結構之間的差異。

何時使用結構。

第 14 章:陣列。

什麼是陣列?

陣列類型。

創建陣列。

第 15 章:介面。

什麼是介面?

定義介面。

介面聲明。

第 16 章:列舉。

列舉聲明。

列舉修飾符。

列舉成員。

注意循環引用。

System.Enum。

第 17 章:委派。

委派的實作。

委派聲明。

第 18 章:例外。

拋出例外。

System.Exception。

常見的例外類別。

處理例外。

第 19 章:屬性。

屬性介紹。

屬性類別。

屬性規範。

屬性實例。

保留屬性。

第 20 章:泛型。

C# 泛型與 C++ 模板。

泛型類別聲明。

泛型結構聲明。

泛型介面聲明。

顯式介面成員實作。

泛型委派聲明。

構造類型。

泛型不使用的地方。

約束。

第 21 章:迭代器。

迭代器區塊。

列舉物件。

可列舉物件。

第 22 章:不安全的程式碼。

什麼是不安全的程式碼?

不安全程式碼的優缺點。

不安全程式碼上下文。

指標基礎。

不安全的實作。

sizeof 運算子。

使用 stackalloc。

編譯不安全的程式碼。

附錄 A:C# 語法。

附錄 B:命名慣例。

附錄 C:標準庫。

附錄 D:可攜性。

附錄 E:XML 文件註解。

索引。