Developers: Learn a New Programming Language or App Development with Deitel LiveLessons Videos!
Login  |  Register  |  Media Kit  |  Press  |  Contact Us  |   Twitter Become a Deitel Fan on Facebook  
Custom Search

Visual C# 2010 How to Program Cover

ISBN: 0132151421
© 2009, pp. 992

Order now at

Download Code
Examples and
Other Premium
Content for
Registered Users

Login or Register to download this book's code examples and other premium content.

Download Code
Examples and
Other Premium
Content for
Registered Users
Additional Resources

Visual C# 2010 How to Program, 4/e

New and Updated Features

Here are the updates we’ve made for Visual C#® 2010 How to Program, 4/e:

  • Printed book contains core content; advanced chapters are online. The printed book contains sufficient core content for most introductory Visual C# course sequences. Several online chapters are included for more advanced courses and for profession- als. These are available in searchable PDF format on the book’s password-protected Companion Website—see the access card in the front of this book.
  • The book’s Companion Website includes extensive VideoNotes in which co- author Paul Deitel explains in detail most of the programs in the core chapters.
  • Making a Difference exercises set. We encourage you to use computers and the Internet to research and solve significant social problems. These new exercises are meant to increase awareness and discussion of important issues the world is fac- ing. We hope you’ll approach them with your own values, politics and beliefs.
  • Up-to-date with Visual C# 2010, C# 4, the Visual Studio 2010 IDE and .NET 4. The C# language has been standardized internationally by ECMA and ISO. The latest version of that language is referred to as C# 4. Microsoft’s implemen- tation of this standard is referred to as Visual C# 2010.
  • New language features. We cover new C# features, such as optional parameters, named parameters, covariance and contravariance.
  • Databases. We use Microsoft’s free SQL Server Express (which installs with the free Visual C# Express) to teach the fundamentals of database programming. Chapters 18, 19, 27 and 28 use database and LINQ fundamentals in the context of an address-book desktop application, a web-based guestbook, a bookstore and an airline reservation system.xviii Preface
  • ASP.NET 4. Microsoft’s .NET server-side technology, ASP.NET, enables you to create robust, scalable web-based applications. In Chapter 19, you’ll build several applications, including a web-based guestbook application that uses ASP.NET, LINQ and a LinqDataSource to store data in a database and display data in a web page. The chapter also discusses the ASP.NET Development Server for testing your web applications on your local computer.
  • We removed generic methods from Chapter 9 to make the code easier to under- stand.
  • The code will run on Windows 7, Windows Vista and Windows XP. We’ll post any issues on
  • We introduce exception handling much earlier (Chapter 8) and integrated it in subsequent chapters in which it had not been used previously. We also now throw exceptions for invalid data received in the set accessors of properties.
  • New design. The book has a new interior design that graphically organizes, clari- fies and highlights the information, and enhances the book’s pedagogy. We used italics extensively to emphasize important words, phrases and points in the text.
  • We titled the programming exercises to help instructors tailor assignments.

Other features of Visual C# 2010 How to Program, 4/e include:

  • We’ve provide instructors with solutions to the vast majority of the exercises. There are a few large exercises marked “Project” for which solutions are not provided.
  • We use LINQ (Language Integrated Query) to query files, databases, XML and collections. The introductory LINQ chapter, Chapter 9, in the core printed book is intentionally brief to encourage instructors to cover this important technology early. The online chapters continue the discussion of LINQ.
  • Local type inference. When you initialize a local variable in its declaration, you can now omit the variable’s type—the compiler infers it from the initializer value.
  • Object initializers. For new objects, you can use object initializer syntax (similar to array initializer syntax) to assign values to the new object’s public properties and public instance variables.
  • We emphasize the IDE’s IntelliSense feature that helps you write code faster and with fewer errors. 

Reviewer Testimonials

"Excellent introduction to the world of .NET for the beginning C# programming student, using the Deitels’ live-code approach and real-world examples."—Bonnie Berent, Microsoft C# MVP

"Illustrates the best practices of C# programming."—Mingsheng Hong, Cornell University

"We use Visual C# How to Program as a textbook because of the excellent code examples, extensive exercises, easy-to-follow hands-on instructions and rich contents."—Zijiang Yang, Western Michigan University

cI particularly liked the exercises on correcting errors in code.d—Marcelo Guerra Hahn, Microsoft

"Takes you from zero to the highest levels of C# programming proficiency. The pedagogical approach, huge selection of exercises and wealth of online material guarantee this book an outstanding place among its peers. The best presentation on inheritance, interfaces and polymorphism I have seen in my 25+ years of experience as a trainer and consultant! [Control Statements: Part 1] is perfect! When I go back to teaching programming to students (which is my real passion), I know which book I will use in my courses! The presentation is superbly clear, and the exercises are amazing!d —Octavio Hernandez, Microsoft C# MVP, Advanced Bionics

"Clearly covers the introductory concepts needed to begin programming with C# and the .NET Framework. Shows the practical application of the most recent topics in C# development. Excellent [Arrays] chapter; the set of exercises is outstanding! A gentle introduction to LINQ and the .NET collection classes; I like it very much! Shows a lot of useful basic techniques and most of the “second level facts” a beginner should master to develop WinForms apps. A practical chapter on string processing. Excellent presentation of fundamental file I/O techniques! I like the way you introduce the reader to working with databases using LINQ to SQL. Excellent introductions to ASP.NET, sorting and searching techniques, and Big O notation! A very good introduction to generics. Outstanding chapter on collections; the discus- sion of the new co- and contra-variance capabilities is by necessity short, but very nice."—Octavio Hernandez, Microsoft C# MVP, Advanced Bionics

"The code examples in [Introduction to C# Applications] give students a very good start on C# programming. A good job explaining the concepts of classes and objects in plain English. [Control Statements: Part 2] is well written; the exercises are excellent. The arrays chapter is well done. A nice introduction to LINQ and Collections. The code exam- ples in the chapter on polymorphism and interfaces are excellent. Important exception-related topics are explained with good examples. Big-O notation is explained very well."—Zijiang Yang, Western Michigan University

"Updated contents cover the most important additions to the language while maintaining the Deitels’ well known high-quality. I can’t think of any other book I’d recommend to C# students over this one. The early introduction to Classes and Objects is brilliant. I especially like the explanation of properties, and the discussion of value types vs. reference types. [Control Statements: Part 2] is easy to read, and its set of exercises is simply amazing. [Classes and Objects: A Deeper Look] does a really good job providing good practices for accessing private data and reusing code. I especially liked your explanation of the Quicksort algorithm. The [Data Structures] chapter is very well written and the exercises are very interesting. Coverage of ASP.NET is exceptional."—José Antonio González Seco, Parliament of Andalusia, Spain

"Teaches how to ‘program in the large,’ with material on object-oriented programming and software engineering principles."—Mingsheng Hong, Cornell University

"The ultimate, comprehensive book that teaches you how to program using the latest Microsoft technologies. Excellent explanations, lots of examples, all the necessary theoretical background and all the latest technologies for desktop, web and databases. The best overview of Silverlight."—Kirill Osenkov, Visual Studio Languages Team, Microsoft

"An excellent, true objects-first book. Excellent introduction to data structures and collections. Demystifies Big O notation. The generics material is a real asset."—Gavin Osborne, Saskatchewan Institute of Applied Science and Technology

"The exercises at the end of the Arrays chapter are quite enjoyable—finishing with the implementation of a virtual machine is really quite something. Great chapter on polymorphism."—Eric Lippert, Microsoft

"Excellent chapter on exceptions. Very good chapter on Winforms GUIs."—Marcelo Guerra Hahn, Microsoft

"Perfect for students and professionals. Thorough introductions to the debugger and LINQ."—Vinay Ahuja, Architect, Microsoft

"The TV/Video Viewer will enthuse students and help them see how graphics effects can be created easily in WPF."—Ged Mead, Microsoft MVP, DevCity.Net

"An excellent introduction to XML, LINQ to XML and related technologies."—Helena Kotas, Microsoft

"Good overview of relational databases. It hits on the right LINQ to SQL idioms."—Alex Turner, Microsoft

"Great overview of producing and consuming web services with WCF."—Dan Crevier, Microsoft



Deitel Dive-Into(R) Series Corporate Training

Discounts on subscriptions

Update :: January 18, 2017