Programming Books C Java PHP Python Learn more Browse Programming Books
Buy Used
Condition: :
Access codes and supplements are not guaranteed with used items.
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

C# How to Program Paperback – December 14, 2001

ISBN-13: 978-0130622211 ISBN-10: 0130622214 Edition: Pap/Cdr

Price: $25.40
14 New from $23.96 41 Used from $0.99 1 Collectible from $57.95
Amazon Price New from Used from
"Please retry"
$23.96 $0.99

There is a newer edition of this item:

Free Two-Day Shipping for College Students with Amazon Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student

Hero Quick Promo
Save up to 90% on Textbooks
Rent textbooks, buy textbooks, or get up to 80% back when you sell us your books. Shop Now

Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Product Details

  • Series: How to Program
  • Paperback: 1568 pages
  • Publisher: Prentice Hall; Pap/Cdr edition (December 14, 2001)
  • Language: English
  • ISBN-10: 0130622214
  • ISBN-13: 978-0130622211
  • Product Dimensions: 7 x 1.7 x 9 inches
  • Shipping Weight: 4.7 pounds
  • Average Customer Review: 3.3 out of 5 stars  See all reviews (54 customer reviews)
  • Amazon Best Sellers Rank: #1,631,439 in Books (See Top 100 in Books)

Editorial Reviews

From the Back Cover

The authoritative DEITEL LIVE-CODE introduction to Windows®, .NET, Internet and World Wide Web programming in C#

This new book by the world's leading programming-language textbook authors carefully explains how to use C#—the premier language in Microsoft's .NET initiative—as a general-purpose programming language, and how to develop multi-tier, client/server, data-base-intensive, Internet- and Web-based applications.

Dr. Harvey M. Deitel and Paul J. Deitel are the founders of Deitel & Associates, Inc., the internationally-recognized corporate-training and content-creation organization specializing in C#, Visual Basic® .NET, Visual C++® .NET, Java, C++, C, XML, Python, Perl; Internet, Web, wireless, e-business and object technologies. The Deitels are the authors of several worldwide #1 programming-language textbooks, including Java How to Program, 4/e, C++ How to Program, 3/e and Internet & World Wide Web How to Program, 2/e.

In C# How to Program the Deitels and their colleagues, Jeff Listfield, Tem. R. Nieto, Cheryl Yaeger and Marina Zlatkina, discuss topics you need to build complete .NET, Web-based applications. Key topics include:

  • .NET Introduction/IDE/Debugger
  • Web Services/ASP.NET
  • Control Structures/Methods/Properties
  • Classes/Data Abstraction
  • OOP/Inheritance/Polymorphism
  • Arrays/Data Structures/Collections
  • Database/ADO .NET/SQL
  • Assemblies/Namespaces/Exceptions
  • GUI/Forms/Controls/Events/Delegates
  • Web Forms/Web Controls/Accessibility
  • Multithreading/Networking/Client-Server
  • Files/Streams/Strings/Regular Expressions
  • Operator Overloading/COM Integration
  • Multimedia/Graphics/GDI+
  • Bit and Character Manipulation/Unicode®

C# How to Program includes extensive pedagogic features:

  • Hundreds of LIVE-CODE programs with screen captures that show exact outputs
  • Internet and World Wide Web resources to encourage further research
  • Hundreds of tips, recommended practices and cautions—all marked with icons

C# How to Program is the centerpiece of a complete family of resources for teaching and learning C#, including several Web sites (, and with the book's source-code examples (which are also on the enclosed CD) and other information for faculty, students and professionals; an optional interactive CD (C# Multimedia Cyber Classroom) containing hyperlinks, solutions to half the book's exercises and audio walkthroughs of the book's code examples; and e-mail access to the authors at:

For information on worldwide Deitel on-site seminars and to subscribe to the Deitel Buzz e-mail newsletter, visit:

Excerpt. © Reprinted by permission. All rights reserved.

Live in fragments no longer. Only connect.
Edward Morgan Forster

We wove a web in childhood,
A web of sunny air.

Charlotte Brontë

Welcome to C# and the world of Windows, Internet and World-Wide-Web programming with Visual Studio and the .NET platform! This book is the second in our new .NET How to Program series, which presents various leading-edge computing technologies in the context of the .NET platform.

C# is the next phase in the evolution of C and C++ and was developed expressly for Microsoft's .NET platform. C# provides the features that are most important to programmers, such as object-oriented programming, strings, graphics, graphical-user-interface (GUI) components, exception handling, multithreading, multimedia (audio, images, animation and video), file processing, prepackaged data structures, database processing, Internet and World-Wide-Web-based client/server networking and distributed computing. The language is appropriate for implementing Internet- and World-Wide-Web-based applications that seamlessly integrate with PC-based applications.

The .NET platform offers powerful capabilities for software development and deployment, including independence from a specific language or platform. Rather than requiring developers to learn a new programming language, programmers can contribute to the same software project, but write code using any (or several) of the .NET languages (such as Visual Basic .NET, Visual C++ .NET, C# and others) with which they are most competent. In addition to providing language independence, .NET extends program portability by enabling .NET applications to reside on, and communicate across, multiple platforms—thus facilitating the delivery of Web services over the Internet. .NET enables Web-based applications to be distributed to consumer-electronic devices, such as cell phones and personal digital assistants, as well as to desktop computers. The capabilities that Microsoft has incorporated into the .NET platform create a new software-development paradigm that will increase programmer productivity and decrease development time.

New Features in C# How to Program

This edition contains many new features and enhancements, including:

  • Two-Color Presentation. This book is in two color. Two color enables readers to see sample outputs similar to how they would appear on a color monitor. Also, we syntax color the C# code similar to the way Visual Studio .NET colors the code in its editor window. Our syntax-coloring conventions are as follows:
    - comments
    - keywords
    - literal values
    - text, class, method and variable names
  • "Code Washing." This is our term for the process we use to format the programs in the book so that they have a carefully commented, open layout. The code appears in full color and grouped into small, well-documented pieces. This greatly improves code readability—an especially important goal for us, considering that this book contains approximately 23,500 lines of code.
  • Web Services and ASP.NET. Microsoft's .NET strategy embraces the Internet and Web as integral to the software development and deployment processes. Web services—a key technology in this strategy—enables information sharing, commerce and other interactions using standard Internet protocols and technologies, such as Hypertext Transfer Protocol (HTTP), Simple Object Access Protocol (SOAP) and Extensible Markup Language (XML). Web services enable programmers to package application functionality in a form that turns the Web into a library of reusable software components. In Chapter 21, ASP .NET and Web Services, we present a Web service that allows users to make airline seat reservations. In this example, a user accesses a Web page, chooses a seating option and submits the page to the Web server. The page then calls a Web service that checks seat availability. We also present information relating to Web services in Appendix P, Crystal Reports® for Visual Studio® .NET, which discusses popular reporting software for database-intensive Visual Basic .NET applications. Crystal Reports, which is integrated into Visual Studio .NET, provides the ability to expose a report as a Web service. The appendix provides introductory information and then directs readers to a walkthrough of this process on the Crystal Decisions Web site (
  • Web Forms, Web Controls and ASP.NET. Applications developers must be able to create robust, scalable Web-based applications. The .NET platform architecture supports such applications. Microsoft's .NET server-side technology, Active Server Pages (ASP) .NET, allows programmers to build Web documents that respond to client requests. To enable interactive Web pages, server-side programs process information users input into HTML forms. ASP .NET is a significant departure from previous versions of ASP, allowing developers to program Web-based applications using the powerful object-oriented languages of .NET. ASP .NET also provides enhanced visual programming capabilities, similar to those used in building Windows forms for desktop programs. Programmers can create Web pages visually, by dragging and dropping Web controls onto a Web form. Chapter 20, ASP .NET, Web Forms and Web Controls, introduces these powerful technologies.
  • Object-Oriented Programming. Object-oriented programming is the most widely employed technique for developing robust, reusable software, and C# offers enhanced object-oriented programming features. This text offers a rich presentation of object-oriented programming. Chapter 8, Object-Based Programming, introduces how to create classes and objects. These concepts are extended in Chapter 9, Object-Oriented Programming: Inheritance, which discusses how programmers can create new classes that "absorb" the capabilities of existing classes. Chapter 10, Object-Oriented Programming: Polymorphism—familiarizes the reader with the crucial concepts of polymorphism, abstract classes, concrete classes and interfaces, which facilitate powerful manipulations among objects belonging to an inheritance hierarchy.
  • XML. Use of Extensible Markup Language (XML) is exploding in the software-development industry, the e-business and e-commerce communities, and is pervasive throughout the .NET platform. Because XML is a platform-independent technology for describing data and for creating markup languages, XML's data portability integrates well with Visual Basic C#'s portable applications and services. Chapter 18, Extensible Markup Language (XML) introduces XML. In this chapter, we introduce basic XML markup and discuss the technologies such as DTDs and Schema, which are used to validate XML documents' contents. We also explain how to programmatically manipulate XML documents using the Document Object Model (DOM) and how to transform XML documents into other types of documents via Extensible Stylesheet Language Transformations (XSLT).
  • Multithreading. Computers enable us to perform many tasks in parallel (or concurrently), such as printing documents, downloading files from a network and surfing the Web. Multithreading is the technology through which programmers can develop applications that perform concurrent tasks. Historically, a computer has contained a single, expensive processor, which its operating system would share among all applications. Today, processors are becoming so inexpensive that it is possible to build affordable computers containing many processors that work in parallel—such computers are called multiprocessors. Multithreading is effective on both single-processor and multiprocessor systems. C#s multithreading capabilities make the platform and its related technologies better prepared to deal with today's sophisticated multimedia-intensive, database-intensive, network-based, multiprocessor-based, distributed applications. Chapter 14, Multithreading provides a detailed discussion of multithreading.
  • ADO. NET. Databases store vast amounts of information that individuals and organizations must access to conduct business. As an evolution of Microsoft's ActiveX Data Objects (ADO), ADO .NET represents a new approach for building applications that interact with databases. ADO .NET uses XML and an enhanced object model to provide developers with the tools they need to access and manipulate databases for large-scale, extensible, mission-critical multi-tier applications. Chapter 19, Database, SQL and ADO .NET, details the capabilities of ADO .NET and the Structured Query Language (SQL) to manipulate databases.
  • Visual Studio .NET Debugger. Debuggers are programs that help programmers find and correct logic errors in program code. Visual Studio .NET contains a powerful debugging tool that allows programmers to analyze their program line-byline as the program executes. In Appendix D, Visual Studio .NET Debugger, we explain how to use key debugger features, such as setting breakpoints and "watches," stepping into and out of procedures, and examining the procedure call stack.
  • COM (Component Object Model) Integration. Prior to the introduction of .NET, many organizations spent tremendous amounts of time and money creating reusable software components called COM components, which include ActiveX® controls and ActiveX DLLs (dynamic link libraries) for Windows applications. Visual Basic programmers traditionally have been the largest group of COM component users. In the appendix, COM Integration, we discuss some of the tools available in Visual Studio .NET for integrating these legacy components into .NET applications. This integration allows programmers to use existing sets of COM-based controls with .NET components.
  • XML Documentation. Documenting program code is crucial for software dev...

Customer Reviews

I wouldn't recommend a beginner to start from this book.
S. Liu
It gets me so frustrated just going through it that I was asking the teacher if I should drop programming altogether.
P. Rickard
I decided to spend some time at the bookstore comparing books and after much deliberation this one won me.
Hector A Garcia

Most Helpful Customer Reviews

15 of 15 people found the following review helpful By Hector A Garcia on April 4, 2002
Format: Paperback
I had been looking for a C# book which also took care of teaching to exploit all the benefits of the .Net framework. I had stumbled with some books that were too inclined to either the language itself or the .net framework, but this book keeps a good balance between these two topics.
I purchased Professional C# from Wrox, but I saw too many typos in the text and even worse in the code!, so I went ahead and returned it later. I decided to spend some time at the bookstore comparing books and after much deliberation this one won me. I think it was a little bit expensive but it was worth it since it includes clear explanations, visual representation of what the samples do and how they work and best of all, it covers may topics I was interested in like XML, SOAP, Web Services, ASP.NET, etc.
I even liked the two color schema (red and black) in which it is printed.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
14 of 14 people found the following review helpful By Thomas Paul VINE VOICE on March 15, 2003
Format: Paperback
Deitel books have been getting better and better with each new release. The later editions of "Java How To Program" were a vast improvement over the early editions of the book. Taking that experience, Deitel published this, their first C# book, in December 2001. The result is a mix of good and not so good. The overall approach to the topic is the standard Deitel method of covering topics in-depth with plenty of code samples. Anyone familiar with their C++ or Java books will recognize the Deitel formula immediately. In this case, the book suffers a little from being a first edition. The book covers all the main topics of the C# language, explains how to use Visual Studio, gives a primer on object oriented programming, and touches upon some advanced topics such as ADO, ASP, and web services. The book does have a feel of being rushed, however. Some of the examples seem either overly contrived or unnecessarily confusing. In some cases the explanations of the code are incomplete. For some reason, Deitel chose to print this book using only black and red instead of the multi-color print used in their Java books. Overall, this book is one of the better introductory C# books. It covers a much wider array of topics than many of the other C# books available and in general it covers them reasonably well. The CD does not include a student or demo copy of Visual Studio.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
7 of 7 people found the following review helpful By Jaewoo Kim VINE VOICE on October 31, 2003
Format: Paperback Verified Purchase
Contrary to what some say about this book, this book is not for the beginners. Yes, it does cover lot of basic concepts, but they are tuned for those who already have a fundamental understanding of C#, Java, or C++ (all related to C). What separates this book from others is its practice problems. The best way to learn programming is to practice, and this book provides enough practice problems to really enhance one's understanding of C#. Highly recommmended for intermediate level C# developers.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
7 of 7 people found the following review helpful By Rudolph Henderson on November 4, 2002
Format: Paperback
The book started out nicely, explaining things step-by-step. Then around chapter 6 it starts throwing out pages of code with little explanation. I had liked the way it referenced visual studio to the code. Around chapter 6 it references visual studio sparingly and I found it hard to create the programs using visual studio cause they left out steps. The book has lots of good tips on commenting code, I felt they should apply it to commenting the text material better.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
9 of 10 people found the following review helpful By B. Averton on December 18, 2004
Format: Paperback
As a university instructor, I used this book until it was replaced. I would absolutely NOT recommend this material. Students regularly complained over and over again about this text (the level of complaint far higher than with other textbooks). As for myself, I found the content to be very sloppy, the overall organization is terrible, there are serious omissions in places, and generally the book is shamelessly commercial (in one chapter, the actual examples are simply a list of other books, with prices, which Deitel publishes -- a pathetic attempt at marketing).

To the average person with little knowledge of this material, on the surface I’m sure this book will appear to be adequate. Under the surface, this book has significant problems.

What I’ve seen happen over and over again is, a student reads through a section of the material, but is still confused and doesn’t grasp important concepts. Unfortunately, the student simply blames him or herself for not understanding this material. But it’s not the fault of the student. It’s the fault of the book authors, who do not present the information in a clear and well organized manner.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
12 of 14 people found the following review helpful By Steve Jones on August 7, 2002
Format: Paperback
Superb. This book shows how it should be done. It covers just about everthing you need to know about C# - web services, XML, database access - it's all here in one book.
The many examples illustrate the concepts very well, and I particularly like the useful tips, 'common programming errors' and 'good programming practice' advice.
Surprisingly, the material is also accessible to people new to programming. There's sufficient introductory material (which experienced programmers can skip over) to allow program novices to start programming with C# - no need to start with Basic in a DOS window!
I have a few other books on C#, but this is easily the best.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
5 of 5 people found the following review helpful By Robert G. Scheffler on December 18, 2005
Format: Paperback
I've been reading technical books for 25 years and this book was recommended to me by someone else - what a let down. First, way too verbose on every subject. I have never seen a book with so much miscellaneous and distracting stuff crammed into one page. The book is 1500 pages of which half don't need to be there. This might work in a class room, but a huge mistake for individual learning. They call there code samples live code, but I call it filling the pages. It's better to explain concepts with simple examples first, then build on them, and this book fails miserably. Many times, only a 2-3 paragraphs explains something, then it goes on for 10 pages dissecting samples. Then briefly concludes before whisking to the next long sample. It's quite the jumble. Also, open any page in this book and you will see 20 bold highlighting of keywords that is very distracting. Also, the pages are thin and have a glare that I find annoying.

The authors appear very knowledge and I'm sure they mean well, but the book is a labor of over analyzing. It's need to be merged with a "dummies" approach to make it more balanced.

I found the subject of basic classes poorly covered in only one brief chapter, and I still haven't found how to make arrays of classes. Also, the index seems to be weak.

However, the breadth of the book is nice if you need to study a few esoteric areas such at TCP/IP, and I have to admit that the chapter on data structures and collections seems to be superb. I would only buy the book for a few of the chapters, but if your trying to learn from the ground up, you will doubt your confidence to learn programming.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Recent Customer Reviews

More About the Authors

Discover books, learn about writers, read author blogs, and more.

What Other Items Do Customers Buy After Viewing This Item?