Synopses & Reviews
Most C# books are written for experienced C++ and Java programmers. If you're a novice programmer, or you have experience in VB6 or other procedural programming languages, and you want to learn C#, until now you've been out of luck.That's why Jesse Liberty, author of the best-selling books Programming C# and Programming ASP.NET, has written an entry-level guide to C#. Written in a warm and friendly manner, this book assumes no prior programming experience, and provides an easy introduction to Microsoft's premier .NET language.Learning C# is a complete introduction to C# and object-oriented programming. Learning C# will help you build a solid foundation in .NET, and show how to apply your skills by using dozens of tested examples. Learning C# introduces Visual Studio .NET, a tool set for building Windows and Web applications. You'll learn about the syntax and structure of the C# language, including operators, classes and interfaces, structs, arrays, and strings. Liberty then demonstrates how to develop various kinds of applications--including those that work with databases--and web services.By the time you've finished Learning C# you'll be ready to move on to a more advanced programming guide that will help you create large-scale web and Windows applications.Whether you have a little object-oriented programming experience or you are new to programming altogether, Learning C# will set you firmly on your way to mastering the essentials of the C# language.
Synopsis
From bestselling author Liberty comes an entry-level book that presents this young programming language and the basics of object-oriented .NET programming.
About the Author
Jesse Liberty, Microsoft .NET MVP, is the best-selling author of O'Reilly Media's "Programming ASP.NET", "Programming C#", "Programming Visual Basic 2005" and over 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 .NET. Jesse is a frequent contributor to O'Reilly Network web sites as well as many industry publications and has spoken at numerous industry events. He is a former Distinguished Software Engineer at AT&T and Vice President for technology development at CitiBank.
Table of Contents
Preface; About This Book; Who This Book Is For; How the Book Is Organized; Conventions Used in This Book; Support; We'd Like to Hear from You; Acknowledgments; Chapter 1: C# and .NET Programming; 1.1 C# and .NET; 1.2 The .NET Platform; 1.3 The .NET Framework; 1.4 The C# Language; 1.5 The Structure of C# Applications; 1.6 The Development Environment; Chapter 2: Getting Started with C#; 2.1 What's in a Program?; 2.2 Your First Program: Hello World; 2.3 Examining Your First Program; Chapter 3: Object-Oriented Programming; 3.1 Creating Models; 3.2 Classes and Objects; 3.3 Defining a Class; 3.4 Class Relationships; 3.5 The Three Pillars of Object-Oriented Programming; 3.6 Encapsulation; 3.7 Specialization; 3.8 Polymorphism; 3.9 Object-Oriented Analysis and Design; Chapter 4: Visual Studio .NET; 4.1 Start Page; 4.2 Inside the Integrated Development Environment (IDE); 4.3 IntelliSense; 4.4 Building and Running; 4.5 For More Information; Chapter 5: C# Language Fundamentals; 5.1 Types; 5.2 Variables; 5.3 Definite Assignment; 5.4 Constants; 5.5 Strings; 5.6 Statements; 5.7 Expressions; 5.8 Whitespace; Chapter 6: Branching; 6.1 Unconditional Branching Statements; 6.2 Conditional Branching Statements; 6.3 Iteration (Looping) Statements; Chapter 7: Operators; 7.1 The Assignment Operator (=); 7.2 Mathematical Operators; 7.3 Increment and Decrement Operators; 7.4 Relational Operators; Chapter 8: Classes and Objects; 8.1 Defining Classes; 8.2 Method Arguments; 8.3 Constructors; 8.4 Initializers; 8.5 Copy Constructors; 8.6 The this Keyword; 8.7 Static and Instance Members; 8.8 Destroying Objects; Chapter 9: Inside Methods; 9.1 Overloading Methods; 9.2 Encapsulating Data with Properties; 9.3 Returning Multiple Values; Chapter 10: Basic Debugging; 10.1 Setting a Breakpoint; 10.2 The Call Stack; Chapter 11: Inheritance and Polymorphism; 11.1 Specialization and Generalization; 11.2 Inheritance; 11.3 Polymorphism; 11.4 Abstract Classes; 11.5 Sealed Classes; 11.6 The Root of All Classes: Object; 11.7 Boxing and Unboxing Types; Chapter 12: Operator Overloading; 12.1 Using the operator Keyword; 12.2 Creating Useful Operators; 12.3 Logical Pairs; 12.4 Conversion Operators; Chapter 13: Structs; 13.1 Defining a Struct; Chapter 14: Interfaces; 14.1 Implementing an Interface; 14.2 Implementing More Than One Interface; 14.3 Casting to an Interface; 14.4 Extending Interfaces; 14.5 Combining Interfaces; 14.6 Overriding Interface Implementations; 14.7 Explicit Interface Implementation; Chapter 15: Arrays; 15.1 Arrays; 15.2 Multidimensional Arrays; 15.3 System.Array; 15.4 Indexers; Chapter 16: Collection Interfaces and Types; 16.1 The Collection Interfaces; 16.2 Array Lists; 16.3 Queues; 16.4 Stacks; 16.5 Copying from a Collection Type to an Array; Chapter 17: Strings; 17.1 Creating Strings; 17.2 Manipulating Strings; 17.3 Regular Expressions; 17.4 The Regex Class; Chapter 18: Throwing and Catching Exceptions; 18.1 Throwing Exceptions; 18.2 Searching for an Exception Handler; 18.3 The throw Statement; 18.4 The try and catch Statements; 18.5 How the Call Stack Works; 18.6 Creating Dedicated catch Statements; 18.7 The finally Statement; 18.8 Exception Class Methods and Properties; 18.9 Custom Exceptions; Chapter 19: Delegates and Events; 19.1 Delegates; 19.2 Multicasting; 19.3 Events; Chapter 20: Afterword; 20.1 Where to Go from Here; 20.2 Advanced Topics in C#; 20.3 Web (ASP.NET) Programming; 20.4 Windows Forms Programming; 20.5 Other Resources; C# Keywords; Colophon;