Cover image for A programmer's introduction to C♯
Title:
A programmer's introduction to C♯
Author:
Gunnerson, Eric.
Personal Author:
Publication Information:
Berkeley, CA : Apress, [2000]

©2000
Physical Description:
xxi, 358 pages : illustrations ; 24 cm
General Note:
Includes index.
Language:
English
ISBN:
9781893115866
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Central Library QA76.73.C153 G865 2000 Adult Non-Fiction Central Closed Stacks
Searching...

On Order

Summary

Summary

As the new programming language for Microsoft's next generation of Window servers, C# is fast, modern and designed to increase programmer productivity. C# enables programmers to quickly build a wide range of applications for the new Microsoft .Net platform. Designed as a comprehensive reference to get programmers up to speed on C#, this guide explains how it fits into the Microsoft network.


Table of Contents

Forewordp. xv
Dedicationp. xvii
Acknowledgmentsp. xvii
About This Bookp. xviii
Introductionp. xix
Chapter 1 Object-Oriented Basicsp. 1
Chapter 2 The .NET Runtime Environmentp. 7
Chapter 3 C# QuickStartp. 13
Chapter 4 Exception Handlingp. 21
Chapter 5 Classes 101p. 33
Chapter 6 Base Classes and Inheritancep. 41
Chapter 7 Class Member Accessibilityp. 55
Chapter 8 Other Class Stuffp. 59
Chapter 9 Structs (Value Types)p. 75
Chapter 10 Interfacesp. 79
Chapter 11 Versioning Using New and Overridep. 93
Chapter 12 Statements and Flow of Executionp. 97
Chapter 13 Local Variable Scopingp. 109
Chapter 14 Operatorsp. 111
Chapter 15 Conversionsp. 121
Chapter 16 Arraysp. 131
Chapter 17 Stringsp. 137
Chapter 18 Propertiesp. 147
Chapter 19 Indexersp. 155
Chapter 20 Enumeratorsp. 165
Chapter 21 Attributesp. 171
Chapter 22 Delegatesp. 181
Chapter 23 Eventsp. 189
Chapter 24 User-Defined Conversionsp. 195
Chapter 25 Operator Overloadingp. 217
Chapter 26 Other Language Detailsp. 221
Chapter 27 Making Friends with the .NET Frameworksp. 233
Chapter 28 System.Array and the Collection Classesp. 241
Chapter 29 Interopp. 259
Chapter 30 .NET Frameworks Overviewp. 261
Chapter 31 Deeper into C#p. 287
Chapter 32 Defensive Programmingp. 311
Chapter 33 The Command Linep. 323
Chapter 34 C# Compared to Other Languagesp. 327
Chapter 35 C# Futuresp. 347
Indexp. 349
Forewordp. xv
Dedicationp. xvii
Acknowledgmentsp. xvii
About This Bookp. xviii
Introductionp. xix
Chapter 1 Object-Oriented Basicsp. 1
What Is an Object?p. 1
Inheritancep. 1
Containmentp. 2
Polymorphism and Virtual Functionsp. 3
Encapsulation and Visibilityp. 4
Chapter 2 The .NET Runtime Environmentp. 7
The Execution Environmentp. 8
A Simpler Programming Modelp. 8
Safety and Securityp. 9
Powerful Tools Supportp. 10
Deployment, Packaging, and Supportp. 10
Metadatap. 10
Assembliesp. 11
Language Interopp. 11
Attributesp. 12
Chapter 3 C# QuickStartp. 13
Hello, Universep. 13
Namespaces and Usingp. 14
Namespaces and Assembliesp. 15
Basic Data Typesp. 16
Classes, Structs, and Interfacesp. 17
Statementsp. 18
Enumsp. 18
Delegates and Eventsp. 18
Properties and Indexersp. 18
Attributesp. 19
Chapter 4 Exception Handlingp. 21
What's Wrong with Return Codes?p. 21
Trying and Catchingp. 22
The Exception Hierarchyp. 22
Passing Exceptions on to the Callerp. 25
Caller Bewarep. 25
Caller Confusep. 25
Caller Informp. 26
User-Defined Exception Classesp. 28
Finallyp. 29
Efficiency and Overheadp. 31
Design Guidelinesp. 31
Chapter 5 Classes 101p. 33
A Simple Classp. 33
Member Functionsp. 35
Ref and Out Parametersp. 36
Overloadingp. 39
Chapter 6 Base Classes and Inheritancep. 41
The Engineer Classp. 41
Simple Inheritancep. 42
Arrays of Engineersp. 44
Virtual Functionsp. 48
Abstract Classesp. 50
Sealed Classesp. 54
Chapter 7 Class Member Accessibilityp. 55
Class Accessibilityp. 55
Using Internal on Membersp. 55
Internal Protectedp. 57
The Interaction of Class and Member Accessibilityp. 57
Chapter 8 Other Class Stuffp. 59
Nested Classesp. 59
Other Nestingp. 60
Creation, Initialization, Destructionp. 60
Constructorsp. 60
Initializationp. 62
Destructorsp. 63
Overloading and Name Hidingp. 64
Name Hidingp. 64
Static Fieldsp. 65
Static Member Functionsp. 66
Static Constructorsp. 67
Constantsp. 68
readonly Fieldsp. 69
Private Constructorsp. 72
Variable-Length Parameter Listsp. 73
Chapter 9 Structs (Value Types)p. 75
A Point Structp. 75
Boxing and Unboxingp. 76
Structs and Constructorsp. 77
Design Guidelinesp. 77
Chapter 10 Interfacesp. 79
A Simple Examplep. 79
Working with Interfacesp. 80
The as Operatorp. 82
Interfaces and Inheritancep. 84
Design Guidelinesp. 85
Multiple Implementationp. 85
Explicit Interface Implementationp. 87
Implementation Hidingp. 90
Interfaces Based on Interfacesp. 91
Chapter 11 Versioning Using new and overridep. 93
A Versioning Examplep. 93
Chapter l2 Statements and Flow of Executionp. 97
Selection Statementsp. 97
Ifp. 97
Switchp. 98
Iteration Statementsp. 99
Whilep. 100
Dop. 101
Forp. 101
Foreachp. 102
Jump Statementsp. 104
Breakp. 105
Continuep. 105
Gotop. 105
Returnp. 105
Definite Assignmentp. 105
Definite Assignment and Arraysp. 107
Chapter 13 Local Variable Scopingp. 109
Chapter 14 Operatorsp. 111
Operator Precedencep. 111
Built-In Operatorsp. 112
User-Defined Operatorsp. 112
Numeric Promotionsp. 112
Arithmetic Operatorsp. 113
Unary Plus (+)p. 113
Unary Minus (−)p. 113
Addition (+)p. 113
Subtraction (−)p. 114
Multiplication (*)p. 114
Division (/)p. 114
Remainder (%)p. 114
Shift (≪ and ≫)p. 114
Increment and Decrement (++ and −−)p. 115
Relational and Logical Operatorsp. 115
Logical Negation (!)p. 115
Relational Operatorsp. 115
Logical Operatorsp. 116
Conditional Operator (?:)p. 117
Assignment Operatorsp. 117
Simple Assignmentp. 117
Compound Assignmentp. 117
Type operatorsp. 118
Typeofp. 118
Isp. 118
Asp. 120
Chapter 15 Conversionsp. 121
Numeric Typesp. 121
Conversions and Member Lookupp. 122
Explicit Numeric Conversionsp. 124
Checked Conversionsp. 125
Conversions of Classes (Reference Types)p. 126
To the Base Class of an Objectp. 126
To an Interface the Object Implementsp. 128
To an Interface the Object Might Implementp. 128
From One Interface Type to Anotherp. 130
Conversions of Structs (Value Types)p. 130
Chapter 16 Arraysp. 131
Array Initializationp. 131
Multidimensional and Jagged Arraysp. 131
Multidimensional Arraysp. 132
Jagged Arraysp. 132
Arrays of Reference Typesp. 133
Array Conversionsp. 135
System.Array Typep. 135
Sorting and Searchingp. 136
Reversep. 136
Chapter 17 Stringsp. 137
Operationsp. 137
Converting Objects to Stringsp. 138
An Examplep. 139
StringBuilderp. 139
Regular Expressionsp. 141
More Complex Parsingp. 142
Chapter 18 Propertiesp. 147
Accessorsp. 147
Properties and Inheritancep. 148
Use of Propertiesp. 148
Side Effects When Setting Valuesp. 150
Static Propertiesp. 151
Property Efficiencyp. 153
Chapter 19 Indexersp. 155
Indexing with an Integer Indexp. 155
Indexers and foreachp. 160
Design Guidelinesp. 163
Chapter 20 Enumeratorsp. 165
A Line Style Enumerationp. 165
Enumerator Base Typesp. 166
Initializationp. 167
Bit Flag Enumsp. 168
Conversionsp. 169
Chapter 21 Attributesp. 171
Using Attributesp. 172
A Few More Detailsp. 174
An Attribute of Your Ownp. 176
Attribute Usagep. 176
Attribute Parametersp. 177
Reflecting on Attributesp. 178
Chapter 22 Delegatesp. 181
Using Delegatesp. 181
Delegates as Static Membersp. 183
Delegates as Static Propertiesp. 185
Chapter 23 Eventsp. 189
A New Email Eventp. 189
The Event Fieldp. 191
Multicast Eventsp. 191
Sparse Eventsp. 191
Chapter 24 User-Defined Conversionsp. 195
A Simple Examplep. 195
Pre- and Post- Conversionsp. 198
Conversions Between Structsp. 198
Classes and Pre- and Post- Conversionsp. 204
Design Guidelinesp. 210
Implicit Conversions Are Safe Conversionsp. 211
Define the Conversion in the More Complex Typep. 211

Google Preview