C# 2.0

Practical Guide for Programmers


  • Michel de Champlain, President, DeepObjectKnowledge Inc., Montreal, Ontario, Canada.
  • Brian Patrick, Trent University, Peterborough, Ontario, Canada.

You don’t need coddling; you don’t need to be told what you already know. What you need is a book that uses your experience as a Java or C++ programmer to give you a leg up into the challenges and rewards of C#. And this Practical Guide is precisely what you’re after.Written by a team that boasts extensive experience teaching C# to professionals, this book provides a practical, efficient explanation of the language itself, covering basic to advanced features and calling out all that’s new in 2.0. Its instruction is always firmly situated within the context of the .NET framework and bolstered by code examples, key lessons in object-oriented programming, and installments of a realistic application programming tutorial. Concise and incisive, this is the best way to master the world’s fastest-growing and most marketable programming language.Features* Provides a carefully focused explanation of every aspect of the C# language, including entire chapters on the unified type system, advanced types, collections, generics, reflection and attributes.* Highlights all features new to the latest version of C# and organizes its presentation of C# according to the key principles of object-oriented programming and the .NET framework.* Using end-of-chapter exercises, incrementally develops a cohesive application programming tutorial. * Includes an easy-to-use appendix on the grammatical rules of C# and provides downloadable example code via the companion website.
View full description


Experienced programmers and software developers who want to begin programming in C#. Secondary audience-- CS students taking general CS and introductory programming courses.


Book information

  • Published: February 2005
  • ISBN: 978-0-12-167451-9


"Great book for any C# developer! It describes the basic programming language with EBNF notation and provides a number of practical programming tips and best practices on program design that enable you to utilize the C# language features effectively." -Adarsh Khare, Software Design Engineer, Microsoft "C# 2.0: A Practical Guide provides an amazing breadth of information in a compact and efficient format, with clear and concise writing and useful code examples. It cuts right to the core of what you need to know, covering every aspect of the C# language, an introduction to the .NET API, and an overview of pertinent object-oriented concepts. This book tops my recommendation list for any developer learning C#." -David Makofske, Principal Consultant/Architect, Akamai Technologies "This book is essential for programmers who are considering system development using C#. The two authors have masterfully created a programming guide that is current, complete, and useful immediately. The writing style is crisp, concise, and engaging. This book is a valuable addition to a C# programmer's library." -Edward L. Lamie, PhD, Director of Educational Services, Express Logic, Inc. "At last, a programming language book that provides complete coverage with a top-down approach and clear, simple examples! Another welcome feature of this book is that it is concise, in the tradition of classics such as Kernighan and Ritchie. The new book by De Champlain and Patrick is the best introduction to C# that I've seen so far." -Peter Grogono, Professor and Associate Chair of Computer Science, Concordia University "The book covers the basic and the advanced features of a relatively new and well established programming language, C#. A truly Object Oriented style is used throughout the book in a consistent manner. C# and Object Oriented concepts are well illustrated through simple and concise examples to hold the reader's attention. A very well-written book." -Ferhat Khendek, PhD, Research Chair in Telecommunications Software Engineering, Concordia University

Table of Contents

Preface1 Introducing C# and .NET2 Classes, Objects, and Namespaces3 Class Members and Class Reuse4 Unified Type System5 Operators, Assignments, and Expressions6 Statements and Exceptions7 Advanced Types, Polymorphism, and Accessors8 Collections and Generics9 Resource Disposal, Input/Output, and Threads10 Reflection and AttributesAppendicesA C# 2.0 GrammarB Predefined XML Tags for Documentation CommentsReferencesIndex