Learning C#

Front Cover
"O'Reilly Media, Inc.", 2002 - Computers - 354 pages

Most C# books are written for experienced C++ and Java programmers. If you're a novice programmer, or you have experience in VB6 or other procedural programming languages, and you want to learn C#, until now you've been out of luck.

That's why Jesse Liberty, author of the best-selling booksProgramming C#andProgramming ASP.NET, has written an entry-level guide to C#. Written in a warm and friendly manner, this book assumes no prior programming experience, and provides an easy introduction to Microsoft's premier .NET language.

Learning C#is a complete introduction to C# and object-oriented programming.Learning C#will help you build a solid foundation in .NET, and show how to apply your skills by using dozens of tested examples.Learning C#introduces Visual Studio .NET, a tool set for building Windows and Web applications. You'll learn about the syntax and structure of the C# language, including operators, classes and interfaces, structs, arrays, and strings. Liberty then demonstrates how to develop various kinds of applications--including those that work with databases--and web services.

By the time you've finishedLearning C#you'll be ready to move on to a more advanced programming guide that will help you create large-scale web and Windows applications.

Whether you have a little object-oriented programming experience or you are new to programming altogether,Learning C#will set you firmly on your way to mastering the essentials of the C# language.

 

What people are saying - Write a review

Don't worry, this is not a book you get in school

User Review  - Khalid - Borders

This book is a good for someone who is looking for an introduction to object orientated programming or wanting to learn C#. This book isn't too easy nor too hard to understand. That is because the ... Read full review

Contents

C and NET Programming
1
The NET Framework
2
The C Language
3
The Development Environment
4
Getting Started with C
5
Whats in a Program?
7
Hello World
8
Examining Your First Program
9
Inheritance and Polymorphism
134
Inheritance
137
Polymorphism
140
Abstract Classes
147
Sealed Classes
150
Boxing and Unboxing Types
152
Operator Overloading
155
Using the operator Keyword
156

ObjectOriented Programming
14
Creating Models
15
Classes and Objects
16
Defining a Class
17
Class Relationships
18
The Three Pillars of ObjectOriented Programming
19
Specialization
20
Polymorphism
21
Visual Studio NET
23
Start Page
25
Templates
26
Inside the Integrated Development Environment IDE
27
IntelliSense
29
Building and Running
30
For More Information
31
C Language Fundamentals
32
Variables
36
Definite Assignment
38
Constants
39
Strings
43
Statements
44
Expressions
45
Branching
47
Unconditional Branching Statements
48
Conditional Branching Statements
50
Iteration Looping Statements
61
Operators
73
Mathematical Operators
74
Increment and Decrement Operators
77
Relational Operators
80
Classes and Objects
85
Defining Classes
86
Method Arguments
96
Constructors
97
Initializers
100
Copy Constructors
101
The this Keyword
102
Static and Instance Members
103
Destroying Objects
109
Inside Methods
111
Encapsulating Data with Properties
114
Returning Multiple Values
118
Basic Debugging
124
The Call Stack
132
Creating Useful Operators
159
Logical Pairs
160
Conversion Operators
167
Structs
172
Interfaces
178
Implementing an Interface
179
Implementing More Than One Interface
183
Casting to an Interface
186
Extending Interfaces
192
Combining Interfaces
197
Explicit Interface Implementation
203
Arrays
206
Arrays
207
Multidimensional Arrays
217
SystemArray
225
Indexers
228
Collection Interfaces and Types
239
Array Lists
250
Queues
253
Stacks
256
Copying from a Collection Type to an Array
259
Strings
263
Manipulating Strings
265
Regular Expressions
281
The Regex Class
282
Throwing and Catching Exceptions
284
Throwing Exceptions
285
The throw Statement
286
The try and catch Statements
287
How the Call Stack Works
289
Creating Dedicated catch Statements
291
The finally Statement
293
Exception Class Methods and Properties
295
Custom Exceptions
299
Delegates and Events
302
Delegates
303
Multicasting
318
Events
322
Afterword
332
Web ASPNET Programming
334
Windows Forms Programming
335
C Keywords
337
Index
341
Copyright

Other editions - View all

Common terms and phrases

About the author (2002)

Jesse Liberty is the best selling author of Programming ASP.NET, Programming C#, and a dozen other books on web and object oriented programming. He is president of Liberty Associates, Inc., where he provides contract programming, consulting and on-site training in ASP.NET, C#, C++ and related topics. Jesse has been a Distinguished Software Engineer at AT&T and Vice President for technology development at CitiBank.

Bibliographic information