C# Precisely

Peter Sestoft, Henrik I. Hansen

  • 出版商: MIT
  • 出版日期: 2004-09-03
  • 售價: $1,050
  • 貴賓價: 9.5$998
  • 語言: 英文
  • 頁數: 224
  • 裝訂: Paperback
  • ISBN: 0262693178
  • ISBN-13: 9780262693172
  • 相關分類: C#
  • 已過版

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

相關主題

商品描述

Description:

C# is an object-oriented programming language that is similar to the Java programming language in many respects but more comprehensive and different in most details. This book gives a concise description of C#. It is intended as a guide for readers who know Java and want to learn C# and as a quick reference for anyone who wants to know C# in more detail than that provided by a standard textbook. The final chapter of C# Precisely summarizes the differences between C# and Java.

C# Precisely is one of the first books on C# to cover version 2.0. It presents the entire C# 2.0 programming language, including generics, iterators, and anonymous methods. It excludes most of the extensive Microsoft.NET framework class libraries except threads, input/output, and generic collection classes. The book shows general rules on left-hand pages, with corresponding examples on right-hand pages. All examples are fragments of legal C# programs. The complete, ready-to-run example programs are available at the book's Web site,
www.dina.kvl.dk/~sestoft/csharpprecisely/.

Peter Sestoft is Professor of Information Technology at the Royal Veterinary and Agricultural University and at the IT University of Copenhagen, Denmark.

Henrik I. Hansen holds master's degrees in Chemistry as well as Information Technology.

 

Table of Contents:

Preface ix
Notational Conventions x
1 Compiling, Loading and Executing C# Programs 2
2 Names and Reserved Names 4
3 C# Naming Conventions 4
4 Comments and Program Layout 4
5 Data and Types 6
6 Variables, Parameters, Fields, and Scope 14
7 Strings 16
8 String Builders 24
9 Arrays 26
10 Classes 32
11 The Machine Model: Stack, Heap, and Garbage Collection 54
12 Expressions                                                                                                  56
13 Statements 84
14 Struct Types 102
15 Interfaces 106
16 Enum Types 110
17 Delegate Types 112
18 Nullable Types over Value Types (C# 2.0) 114
19 Exceptions 116
20 Threads, Concurrent Execution, and Synchronization 118
21 Mathematical Functions 124
22 Input and Output 126
23 Generic Types and Methods (C# 2.0) 144
24 Generic Collections: Lists and Dictionaries (C# 2.0) 158
25 Namespaces 172
26 Partial Type Declarations (C# 2.0) 174
27 Assertions and the Debug.Assert Method 176
28 Attributes 178
29 Main Differences between C# and Java 180
30 References 182
Index 183