search for books and compare prices
Tables of Contents for Rescued by C#
Chapter/Section Title
Page #
Page Count
Getting Started with C#
1
13
Understanding Computer Programs and Programming
2
1
Installing Visual Studio.NET
3
1
Running Visual Studio
4
1
Loading a C# Program in Visual Studio
5
3
Printing a Program File in C#
8
1
Setting Up Visual Studio
9
1
Saving Your Program Code
10
2
What You Must Know
12
1
Building, Running and Saving Your First C# Program
13
16
Creating a Project
14
2
Understanding Your Program Files
16
1
Starting the Compiler
17
1
Using the Output Window
18
2
Examining the Results
20
1
Running Your Program
21
5
Closing and Saving Your Program
26
1
What You Must Know
26
3
Exploring Visual Studio 7
29
14
Setting Visual Studio Options
30
1
Using the New Project Dialog Box
31
2
Selecting a Project Type
33
1
Using Visual Studio Windows
34
2
Exploring Visual Studio Menus and Toolbars
36
2
Using the Solution Explorer
38
1
Using Class View
39
1
Getting Help
40
1
Using the Find In Files Command
41
1
What You Must Know
42
1
Using C# from the Command Line
43
22
Compiling Your C# Program from the Command Line
44
1
Running Your C# Program
45
2
Understanding the Main() Function
47
4
Performing Basic Output: The Console Class
51
5
Using Strings and String Literals: ``Hello, C# world!''
56
5
Writing a C# Program for Windows
61
2
What You Must Know
63
2
Understanding a Few Key C# Basics
65
20
Tokens and White Space
66
2
Learning the Basics of Functions
68
3
Understanding Statements in C#
71
1
Using the Semicolon to Mark the End of a Statement
72
1
Adding Comments to Your Code
73
2
Understanding Namespaces
75
6
Making Changes to Your C# Program
81
1
Recognizing Syntax Errors
82
2
What You Must Know
84
1
Using Variables to Store Information in C# Programs
85
24
Understanding Identifiers
86
1
Why C# Uses Variable Types
87
1
Understanding Fundamental C# Types
87
2
Declaring Variables Within a C# Program
89
3
Assigning Values to Variables
92
1
Displaying a Variable's Value
93
7
Assigning a Value of One Type to a Variable of Another
100
2
Using Read-Only Variables
102
2
Using Checked and Unchecked Variables
104
2
Boxing and Unboxing Variables
106
1
What You Must Know
107
2
Getting Started with Classes
109
30
Introducing the C# Class
110
1
Defining Classes
111
2
Adding Members to a Class
113
4
Using the Visual Studio Class View Panel
117
15
Understanding the this Variable
132
1
Understanding the static Modifier for Class Members
133
3
What You Must Know
136
3
Object-Oriented Programming and C#
139
24
Understanding Objects
140
1
Using Value- and Reference-Types
141
3
Declaring and Using Enumerated Values
144
3
Understanding Inheritance
147
5
Examining Encapsulation and Visibility
152
1
Understanding Polymorphism
153
7
Using Abstract Classes
160
1
What You Must Know
161
2
Getting Started with C# Operators
163
26
Reviewing Operators
164
1
Understanding Unary Operators
165
5
Understanding Binary Operators
170
1
Using Arithmetic Operators
171
3
Understanding Assignment Operators
174
3
Using Relational Operators to Compare Two Values
177
2
Logical Operators: Testing for True and False Conditions
179
2
Understanding Bitwise Operators
181
3
Using Unsafe Code
184
2
What You Must Know
186
3
Understanding Constructors and Destructors
189
14
Using the new Operator
190
1
Understanding Constructors
191
2
Using Constructors
193
3
Using Multiple Constructors
196
2
Understanding Destructors
198
3
What You Must Know
201
2
Understanding Class Scope and Access Control
203
12
Reviewing Class Objects
204
2
Establishing Function Access
206
5
Accessing Data Members
211
1
Understanding Class Scope
212
2
What You Must Know
214
1
Deriving a New Class from an Existing Class
215
22
Writing Base Classes
216
8
Using Access Keywords for Base Classes
224
2
Hiding Class Members
226
4
Understanding the Order of Constructors and Destructors
230
2
Using Virtual Functions
232
2
What You Must Know
234
3
Using Namespaces and Assemblies
237
22
Working with Namespaces
238
1
Creating Your Own Namespaces
239
1
Using Multiple Source-Code Files
240
6
Creating and Using Modules
246
1
Understanding Assemblies
247
1
Working with Assemblies
248
5
Creating a Shared Assembly
253
3
What You Must Know
256
3
Using Structures in C# to Group Related Data
259
16
Defining Structures
260
2
Declaring Structure Members
262
1
Using Structures as Objects
263
2
Understanding the Differences Between Classes and Structures
265
5
Treating a Structure Variable as a Reference-Type Object
270
2
What You Must Know
272
3
Handling Exceptions
275
20
Understanding Exception Handling
276
2
Throwing an Exception
278
3
What to Do When C# Throws Exceptions
281
3
Understanding Scope in Exception Blocks
284
2
Catching an Exception
286
1
Terminating a Program in an Exception Block
287
3
Using Multiple catch Blocks
290
2
Using finally Blocks
292
1
What You Must Know
293
2
Using Array Variables to Store Multiple Values
295
20
Arrays Let Your Program Store Multiple Values in a Single Variable
296
1
Declaring Arrays in Your C# Program
297
3
Understanding Array Types
300
3
Accessing Array Elements
303
2
Declaring Arrays of Classes and Structures
305
4
Using Strings In C#
309
1
Declaring and Using Multidimensional Arrays
310
3
What You Must Know
313
2
Using Increment and Decrement Operators
315
8
Incrementing and Decrementing Variables
316
1
Using Prefix Expressions
317
1
Using Postfix Expressions
318
2
What You Must Know
320
3
Writing Expressions in C#
323
12
How C# Evaluates Expressions
323
3
Understanding Operator Precedence
326
3
Writing Arithmetic Expressions
329
3
Writing Boolean Expressions
332
2
What You Must Know
334
1
C#, Like All Languages, Follows Rules of Grammar and Syntax
335
14
C# Definitions and Conventions
337
1
Understanding Operator Syntax
337
1
Reviewing Punctuation
338
1
Declaration Syntax
339
1
Evaluating Expressions
340
2
Writing Statements
342
3
Using Syntax Highlighting in Visual Studio
345
2
What You Must Know
347
2
Making Decisions within a C# Program
349
16
Understanding Decision-Making Constructs
350
1
Using the if Statement
351
3
Using the else Statement
354
2
Building Multiple if-else Constructs
356
2
Using the switch Statement as an Alternative to Multiple if-else Statements
358
3
Evaluating More Than One Expression in an if Statement
361
2
Nesting Decision-Making Statements (Placing One Statement Within Another)
363
1
What You Must Know
364
1
Repeating Statements within a C# Program
365
16
Using C# Loop Constructs to Repeat Statements
366
1
Looping with goto and Label Statements
367
2
Using the for Loop to Perform Statements a Specific Number of Times
369
4
Using the while Loop to Perform Statement While a Condition is True
373
4
Using the foreach Loop
377
2
Understanding Nested Loops (A Loop Within a Loop)
379
1
What You Must Know
380
1
Getting Started with C# Functions
381
12
Breaking Your Program Into Smaller, More Manageable Pieces
382
2
C# Does Not Allow Global Functions
384
3
Calling Functions
387
2
Using Function Return Types
389
1
Using the ref Keyword to Change Parameters
390
2
What You Must Know
392
1
Passing Variables and Values to Functions
393
12
Understanding Function Arguments and Parameters
394
1
How a C# Program Stores Values
394
2
Understanding static Variables
396
2
Understanding What Happens When Your Program Calls a Function
398
1
Passing Arguments to a Function
399
2
Using the ref Keyword to Pass Parameters by Reference
401
2
What You Must Know
403
2
Using Objects, Values and Constants as Arguments
405
12
Using Structures and Arrays as Arguments
406
1
Temporarily Changing the Data Type of a Value
407
2
Using References
409
2
Understanding Constants
411
1
Defining Constants
411
4
Using Constants as Arguments
415
1
What You Must Know
416
1
Understanding Function and Variable Scope
417
16
Understanding Scope
418
1
Function Declaration Scope
419
2
Determining Function Scope
421
7
Using Block Scope
428
2
Understanding Visibility and Duration
430
2
What You Must Know
432
1
Writing a Windows Program
433
12
Understanding How Windows Programs Differ
434
2
Creating a Windows Application in Visual Studio
436
5
Compiling and Testing a Windows Program
441
1
What You Must Know
442
3
Using Forms
445
14
Adding Forms to a Project
446
4
Setting Form Options
450
3
Displaying and Hiding a Form
453
2
Adding Controls to a Form
455
1
What You Must Know
456
3
Using Windows Controls
459
12
Understanding the Purpose of controls
460
1
Examining Common Control
461
6
Setting Control Styles
467
2
Using Messages From Controls
469
1
What You Must Know
470
1
Using Delegates
471
12
Understanding Delegates
472
1
Using Delegates
473
4
Writing a Class for Delegates
477
1
Using Delegates with Arguments and Return Values
478
2
Defining a Delegate for an Event
480
1
What You Must Know
481
2
Using the Common Dialogs in a C# Program
483
18
Understanding the Common Dialogs
485
3
Using ColorDialog
488
3
Using FontDialog
491
1
Using FileDialog
492
8
What You Must Know
500
1
Using Streams in C#
501
14
Understanding the Stream Classes
502
3
Using Stream Objects
505
6
Understanding Stream Properties
511
1
Using Stream Methods
512
2
What You Must Know
514
1
Overloading Functions and Operators
515
10
Understanding Overloading
517
1
Overloading Functions
518
2
Overloading Operators
520
4
What You Must Know
524
1
Index
525