"Live in fragments no longer, only connect."
Welcome to C# and the world of Windows, Internet and Web programming with Visual Studio 2005 and the .NET 2.0 platform! This book presents leading-edge computing technologies for computer science students, software developers and IT professionals.
At Deitel & Associates, we write computer science textbooks for college students and professional books for software developers. We also teach this material in industry seminars at organizations worldwide.
This book was a joy to create. To start, we put the previous edition under the microscope:
- We audited our C# presentation against the most recent Ecma and Microsoft C# Language Specifications, which can be found at www.ecma-international.org/publications/standards/Ecma-334.html and msdn.microsoft.com/vcsharp/programming/language/, respectively.
- All of the chapters have been significantly updated and upgraded.
- We changed to an early classes and objects pedagogy. Now readers build reusable classes starting in Chapter 4.
- We updated our object-oriented presentation to use the latest version of the UML (Unified Modeling Language)-UML 2.0-the industry-standard graphical language for modeling object-oriented systems.
- We added an optional OOD/UML automated teller machine (ATM) case study in Chapters 1, 3-9 and 11. The case study includes a complete C# code implementation of the ATM.
- We added several multi-section object-oriented programming case studies.
- We incorporated key new features of Microsoft's latest release of C#-Visual C# 2005-and added discussions on generics, .NET remoting and debugging.
- We significantly enhanced our treatment of XML, ADO.NET, ASP.NET and Web services.
All of this has been carefully scrutinized by a team of distinguished .NET industry developers, academic professionals and members of the Microsoft C# developement team.
We believe that this book and its support materials have everything instructors and students need for an informative, interesting, challenging and entertaining C# educational experience. In this Preface, we overview various conventions used in the book, such as syntax shading the code examples and code highlighting. We also discuss the book's comprehensive suite of ancillary materials that help instructors maximize their students' learning experience, including the Prentice Hall Instructor's Resource Center, PowerPoint® Slide lecture notes, companion Web site, SafariX (Pearson Education's WebBook publications) and more.
Visual C# 2005 How to Program, 2/e presents 230 complete, working C# programs and depicts their inputs and outputs in actual screen shots of running programs. This is our signature "live-code" approach-we present concepts in the context of complete working programs.
As you read this book, if you have questions, send an e-mail to firstname.lastname@example.org
; we will respond promptly. For updates on this book and the status of C# software, and for the latest news on all Deitel publications and services, visit www.deitel.com
regularly and be sure to sign up for the free Deitel® Buzz Online
e-mail newsletter at www.deitel.com/newsletter/subscribe.html
Before You Begin
Downloading Microsoft Visual C# 2005 Express Edition Software
On November 7, 2005 Microsoft released its Visual Studio 2005 development tools, including the Visual C# 2005 Express Edition. Per Microsoft's Web site, Microsoft Express Editions are "lightweight, easy-to-use and easy-to-learn tools for the hobbyist, novice and student developer." This product is available free for download through November 6, 2006. After this date, if you have already downloaded the software, it will still work. However, if you need to download the software after this one-year period, Microsoft may charge a fee for the download.
Microsoft provides a dedicated forum for help using the Express Editions:
Visual C# 2005 How to Program, 2/e Code Examples
The book's source code is available free for download at www.deitel.com/books/csharphtp2/
. We assume that you are using Microsoft Windows. If you are running a different operating system and have questions about copying the example files to your computer, please see your instructor.
Once you download the complete examples.zip file, extract the files to the C:\ folder on your computer. This will create an examples folder that contains subfolders for each chapter (e.g., ch01, ch02, etc.)
Additional Software Downloads
For the examples in Chapter 17, Graphics and Multimedia, we use Microsoft Agent. If students use the examples in a lab environment, more than likely this software will have to be installed as part of the lab setup.www.microsoft.com/msagent/downloads/default.asp
For Chapter 20, you will need SQL Server 2005 Express Edition (also available as part of the Visual C# 2005 Express Edition download)msdn.microsoft.com/vstudio/express/sql/
For Chapters 21 and 22, you will need Visual Web Developer 2005 Express Edition msdn.microsoft.com/vstudio/express/vwd/