OReilly MediaSafari Books Online
Search

Table of Contents
Browse by Category
 
 
Hide Left Column
Programming C#, 3rd Edition
Programming C#, 3rd Edition
by Jesse Liberty

Publisher: O'Reilly
Pub Date: May 2003
More recent edition of this book available.
ISBN: 0-596-00489-3
Pages: 710
Slots: 1.0
Start Reading
Buy Print Version
Overview

The new edition of Programming C# focuses on the features and programming patterns that are new to the C# language and fundamental to the programming of web services and web applications on the .NET platform. Newly updated for version 1.1 of the .NET Framework and Visual Studio .NET 2003, the book features new tips & tricks plus answers to frequently asked questions about C#.

 
Editorial Reviews
Amazon.com
Jesse Liberty's Programming C# provides an adept and extremely well conceived guide to the C# language and is written for the developer with some previous C++, Java, and/or Visual Basic experience.

It's no secret that many computer books are pretty much devoid of an authorial personality. This title is a winning exception. The author is able to weave in clever examples (using such topics as his own long experience in computing, his dog, Star Trek, etc.) without being coy or getting in the way of presenting real technical information. Liberty's wide experience in computers and general writing skill shows, as he is able to draw on a wealth of examples to move his text forward.

These are a couple of goals at work in Programming C#. First, it's an excellent language tutorial, certainly one of the smartest and best available guides to C# as a language. Early chapters explore basic and obscure language options using inheritance, delegation, interface, and the conventions in C# used to implement these techniques. The middle part of the book turns toward the .NET Framework itself, with two useful (and somewhat introductory) chapters on both Windows Forms and Web Forms, for standalone and Web-based applications, respectively.

Later sections crank up the technical knowledge again with several advanced topics on understanding .NET assemblies and deployment in detail, as well as "reflection" APIs that allow .NET programs to essentially modify their code at run time. (One technique, reflection emit, which literally writes bytecodes, will definitely interest expert readers, though it's unlikely most programmers will need to do this.) Final sections look at the .NET stream classes (rivaled only by Java's for complexity). Liberty looks at basic file and network I/O as well as how objects get serialized and marshaled both for SOAP and Web services and "normal" .NET remoting.

The author's sure hand here in navigating the difficult waters of C# and .NET makes for a relatively concise text that is chock-full of useful information on C#. Filled with notably clever and inventive examples, this book is possibly this veteran computer author's best title to date, and it's sure to be a noteworthy resource as experienced developers tackle C# for the first time. --Richard Dragan

Topics covered:

  • Introduction to C# and the .NET platform
  • A "Hello World" example in C#
  • Tutorial to C# as an object-oriented programming language (types and variables, operators, namespaces, and preprocessor directives)
  • Defining classes in C# (including static members, finalizers, overloading, and read-only fields)
  • Inheritance and polymorphism implemented in C#
  • Operator overloading
  • Structures in C#, interfaces, arrays, and indexers
  • Built-in .NET collections, strings, and regular expression support
  • Structured exception handling
  • Delegate and events
  • Introduction to programming with Windows Forms
  • ADO.NET database APIs (including basic XML support)
  • Quick introduction to Web Forms and ASP.NET used with C#
  • Introduction to Web services (SOAP, WSDL, and Discover services described)
  • In-depth guide to .NET assemblies (including metadata, versioning, private and shared assemblies)
  • C# support for attributes and reflection (including reflection emit techniques)
  • Marshaling and remoting (with and without SOAP)
  • Threads and synchronization
  • Tutorial to C#/.NET streams (including basic I/O techniques, Web streams, and serialization)
  • COM and .NET interoperability
Book Description
C# was designed from the ground up for development on Microsoft's .NET framework. As such, it's a high-performance language that's simple, safe, object-oriented, and Internet-centric. Programming C#, 3rd Edition teaches this new language in a way that experienced programmers will appreciate--by grounding its applications firmly in the context of Microsoft's .NET platform and the development of desktop and Internet applications. Bestselling author Jesse Liberty has updated this latest edition to reflect the release of Visual Studio .NET 2003 and the .NET Framework 1.1. He's also added an entirely new chapter demonstrating various web forms and web services applications, and enlarged and expanded his coverage of events and delegates in response to numerous reader requests. He's even added tips for programmers coming from VB and C++ backgrounds. The first part of this book introduces C# fundamentals, then goes on to explain:
  • Classes and objects
  • Inheritance and polymorphism
  • Operator overloading
  • Structs and interfaces
  • Arrays, indexers, and collections
  • String objects and regular expressions
  • Exceptions and bug handling
  • Delegates and events
Part two of Programming C#, 3rd Edition focuses on development of desktop and Internet applications, including Windows Forms, ADO.NET and ASP.NET. ASP.NET includes Web Forms, for rapid development of web applications, and Web Services for creating objects without user interfaces, to provide services over the Internet. Part three gets to the heart of the .NET Framework, focusing on attributes and reflection, remoting, threads and synchronization, and streams. Part three also illustrates how to interoperate with COM objects. In much the way that you can see the features and personality of the parents and grandparents in young children, you can easily see the influence of Java, C++, Visual Basic, and other languages in C#. The level of information in Programming C#, 3rd Edition allows you to become productive quickly with C# and to rely on it as a powerful addition to your family of mastered programming languages.
 
Other Readers Also Read
Top Sellers in This Category
Browse Similar Topics
Programming ASP.NET, 3rd Edition
by Dan Hurwitz, Jesse Liberty
Learning C# 2005
by Jesse Liberty, Brian MacDonald
C# Cookbook, 2nd Edition
by Jay Hilyard, Stephen Teilhet
Programming .NET Components, 2nd Edition
by Juval Lowy
   
Reader Reviews From Amazon (Ranked by 'Helpfulness')
Average Customer Rating: based on 190 reviews.
Disappointed, 2006-10-11
Reviewer rating:
The examples are not easy to follow and it does not give sufficient explanation. It is basically useless to me.

This book does not attempt to teach anything except the basic. Not worth the money.
Not for those with a C++ background, 2006-09-16
Reviewer rating:
My background is in C++ with some experience with Java and no experience with .NET. I didn't fully realize how similar C++ is to C# until I finished this book, and I think my money would have been better spent buying a book on .NET.

This book is 600 pages, but only the first half covers C#. The rest goes into using Visual Studio 2005 and various .NET classes, which applies equally well to any of the languages Microsoft supports. I didn't really learn anything new about C# that I hadn't already read in the various online tutorials. That's not a knock against the book - the information is all there - but if you know C++ and you're buying the book to learn C#, don't bother.

Instead I'd recommend:
1. Read an online tutorial or two on the difference between C++ and C#.
2. Download Visual C# 2005 Express Edition (free) and create some examples on your own. The IDE is very good at funneling you into using the right syntax.
3. Buy a book on .NET.
A+ service, 2006-06-26
Reviewer rating:
I received the book very fast. The book is in excellent condition as described. I am happy with this purchase.
Programming C# Book Review, 2006-04-25
Reviewer rating:
This book is my introduction to the C# language. I come from a
Java/ColdFusion (mainly web applications) background and wanted to
venture out onto the .Net Platform. What better language to learn
than the most hyped-up language from Microsoft?

I found the book to be for the intermediate developer (at least),
with some programming experience in C++ or Java, although a novice
would also benefit from reading. This book takes the reader from a
the traditional "Hello World" to complex programs covering
everything from Internet related programs to streams and I/O.

The basics of assemblies, their management and deployment span the
first part of this book. The .Net Remoting part covers the subject
well in detail, the third part covers the Web Services, while the
fourth covers the Com and .Net interoperability.

Jesse Liberty commands this area of programming and has compiled
this book in a very well though out manner. The reader will benefit
(as I did), with the "special notes" and snippets pointing out
differences & similarities of C# with Java/C/C++.

In conclusion, I will strongly recommend this book to readers from
novice (with acumen) to intermediate developer.
Excellent book, 2006-04-22
Reviewer rating:
I've been doing C# programming for the last couple of years and I still managed to learn something by reading this book. Highly recommended.
 
Some information above was provided using data from Amazon.com. View at Amazon >
Programming C#, 3rd Edition
Programming C#, 3rd Edition
by Jesse Liberty

Publisher: O'Reilly
Pub Date: May 2003
More recent edition of this book available.
ISBN: 0-596-00489-3
Pages: 710
Slots: 1.0
Start Reading
Buy Print Version
About Safari | Terms of Service | Privacy Policy | Contact Us | Help | 508 Compliance
Copyright © 2006 Safari Books Online. All rights reserved.