C# 2005 Programmer's Reference (Paperback)

Adrian Kingsley-Hughes, Kathie Kingsley-Hughes

  • 出版商: Wrox Press
  • 出版日期: 2006-11-06
  • 售價: $1,590
  • 貴賓價: 9.5$1,511
  • 語言: 英文
  • 頁數: 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.