C# is designed from the ground up for development on Microsoft's new .NET framework. As such, it's a high-performance language that's simple, safe, object-oriented, and Internet-centric. Programming C# 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.The first part of this book introduces C# fundamentals, then goes on to explain:
Classes and objects
Inheritance and polymorphism
Structs and interfaces
Arrays, indexers, and collections
String objects and regular expressions
Exceptions and bug handling
Delegates and events
Part two of Programming C# 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# allows you to become productive quickly with C# and to rely on it as a powerful addition to your family of mastered programming languages.
The C# Language
Chapter 1 C# and the .NET Framework
The .NET Platform
The .NET Framework
Compilation and the MSIL
The C# Language
Chapter 2 Getting Started:"Hello World”
Classes, Objects, and Types
Developing “Hello World”
Using the Visual Studio .NET Debugger
Chapter 3 C# Language Fundamentals
Variables and Constants
Chapter 4 Classes and Objects
Using Static Members
Overloading Methods and Constructors
Encapsulating Data with Properties
Chapter 5 Inheritance and Polymorphism
Specialization and Generalization
The Root of all Classes: Object
Boxing and Unboxing Types
Chapter 6 Operator Overloading
Using the operator Keyword
Supporting Other .NET Languages
Creating Useful Operators
The Equals Operator
Chapter 7 Structs
Chapter 8 Interfaces
Implementing an Interface
Accessing Interface Methods
Overriding Interface Implementations
Explicit Interface Implementation
Chapter 9 Arrays, Indexers, and Collections
The foreach Statement
Chapter 10 Strings and Regular Expressions
Chapter 11 Handling Exceptions
Throwing and Catching Exceptions
Chapter 12 Delegates and Events
Programming with C#
Chapter 13 Building Windows Applications
Creating a Simple Windows Form
Creating a Windows Form Application
XML Documentation Comments
Deploying an Application
Chapter 14 Accessing Data with ADO.NET
Relational Databases and SQL
The ADO.Net Object Model
Getting Started with ADO.NET
Using ADO Managed Providers
Working with Data-Bound Controls
Changing Database Records
ADO.NET and XML
Chapter 15 ProgrammingWeb Applications with Web Forms
Jesse Liberty is the best selling author of Programming ASP.NET, Programming C#, and a dozen other books on web and object oriented programming. He is president of Liberty Associates, Inc., where he provides contract programming, consulting and on-site training in ASP.NET, C#, C++ and related topics. Jesse has been a Distinguished Software Engineer at AT&T and Vice President for technology development at CitiBank.
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Programming C# is an African crowned crane. This tall, skinny bird wanders the marshes and grasslands of west and east Africa (the Western and Eastern African crowned cranes,Balearica pavonina pavonina and Balearica regulorum gibbericeps, respectively).Adult birds stand about three feet tall and weigh six to nine pounds. Inside their long necks is a five-foot long windpipe-part of which is coiled inside their breastbone-giving voice to loud calls that can carry for miles. They live for about 22 years, spending most of their waking hours looking for the various plants, small animals, and insects they like to eat. (One crowned crane food-finding technique, perfected during the 38 to 54 million years these birds have been around, is to stamp their feet as they walk, flushing out tasty bugs.) They are the only type of crane to perch in trees, which they do at night when sleeping.Social and talkative, African crowned cranes group together in pairs or families, and the smaller groups band together in flocks of more than 100 birds. Their elaborate mating dance has served as a model for some of the dances of local groups of people. Darren Kelly was the production editor and Audrey Doyle was the proofreader for Programming C#. Mary Brady and Claire Cloutier provided quality control. Joe Wizda wrote the index. Interior composition was done by James Carter, Matthew Hutchinson, and Edith Shapiro.Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is an original antique engraving from the 19th century. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.David Futato designed the interior layout based on a series design by Nancy Priest. Neil Walls converted the files from Microsoft Word to FrameMaker 5.5.6 using tools created by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book; the code font is Constant Willison. The illustrations that appear in this book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. This colophon was written by Leanne Soylemez.
I gave up on this book at building web services. When errors occur because of an IIS dependency or something so far away from the code you are working on (IIS would not serve the web form but insisted on downloading it) there is no sidebar on what to expect or what to do. The help web site is filled with ads, making the whole experience even more unpleasant and aggrivating than it should be.
I have gone through the first 13 chapters of this book and have found many (more than twenty!) errors that are horribly obvious and suggests that this book wasn't properly proofread or revised. Problems from inconsistency to a StackOverflow error* in the FileCopier example in Ch 13. I am lucky that I know C++ and Java well enough to catch these mistakes. Other than that this book does introduce the C# language in an organized maner. I do recommend it for people that are comfortable with their programming skills, and for the rest I'd suggest getting the next edition of this book.
* The StackOverflow error comes from user checking one of the nodes in the left TreeView, which then called tvwSource_AfterCheck(...) as an AfterCheck behavior. tvwSource_AfterCheck then calles SetCheck(...) that then assigns a value to the checkBox again which triggers tvwSource_AfterCheck AGAIN and so on... How did this get missed? It could be due to me using the Beta of VS.NET, who knows.
Great book, some small errors but nothing to get excited about. What I like best is that it covers a lot of material in a nice concise text. Not like the huge WROX books out there that are a little too verbose ... Wrox people must all be VB programmers!
I noticed a lot of small errors. However anyone with 1/4 of a brain will be able to figure them out and follow along with the book easily.
This book is very well written. For the programmers out there, this book reminds me of Charles Petzolds Programming Windows 95 (which was one of the best books written for windows programming of its time).
I started in chapter 13, for I alraedy knew the syntax of the language from a prior book. But after chapter 13 it truely is an amazing book.
I enjoyed the examples. This is the best c# book on the market, a definite buy.