Synopses & Reviews
Written by popular author and .NET expert Jesse Liberty, this thoroughly updated tutorial for beginning to intermediate programmers covers the latest release of Microsoft's popular C# language (C# 3.0) and the newest .NET platform for developing Windows and web applications.
Our bestselling Programming C# 3.0, now in its fifth edition, is a world-class tutorial that goes well beyond the documentation otherwise available. Liberty doesn't just teach C#; he tells the complete story of the C# language and how it integrates with all of .NET programming, so that you can get started creating professional quality web and Windows applications.
This book:
- Provides a comprehensive tutorial in C# and .NET programming that also serves as a useful reference you'll want by your side while you're working
- Covers all of the new features of the language, thoroughly integrated into every chapter, rather than tacked on at the end
- Provides insight into best practices and insight into real world programming by a professional programmer who worked with C# as an independent contractor for nearly a decade before joining Microsoft as a Senior Program Manager
- Every chapter in this book has been totally revised, and the entire book has been reorganized to respond to the significant changes in the language
- Full coverage, from the ground up of LINQ (Language Integrated Query) and other C# 3.0 language innovations to speed up development tasks
- Explains how to use C# in creating Web Applications as well as Windows Applications, using both the new Windows Presentation Foundation (WPF) and the older WinForms technology
This new edition of
Programming C# 3.0 is for working programmers who want to develop proficiency in Microsoft's most important language. No prior .NET experience is required for you to get started. There's no time like the present to work with C# -- and no book like this one to teach you everything you need to know.
Special note to VB6 and Java programmers: if you've decided to transition to .NET, this book will take you there.
Synopsis
This thoroughly updated tutorial for beginning to intermediate programmers covers the latest release of Microsoft's popular C# language (C# 3.0) and the new .NET 3.5 platform for developing Windows and web applications. Now in its fifth edition, our bestselling Programming C# 3.0 teaches the essentials of the C# and the .NET Framework Class Libraries, and explains how to use these tools to create applications for Windows, as well as for the Web. This book: Not only teaches the basics of programming with C# 3.0, but doubles as a reference Includes new chapters to teach you how to use new LINQ (Language Integrated Query) and other C# 3.0 language innovations to speed up development tasks Explains how to create Windows applications using .NET and the Windows Presentation Foundation (WPF) for both Vista and legacy operating systems Teaches you how to create web applications with ASP.NET 2.0 and ASP.NET AJAX, and how to consume web services with Windows Communication Foundation (WCF) This new edition of Programming C# 3.0 is for working programmers who want to develop proficiency in Microsoft's hottest and most important language. No prior .NET experience is required for you to get started, as long as you understand the basics of object-oriented programming with languages such as C++ or Java. There's no time like the present to work with C# -- and no book like this one to teach you the intricacies.
Synopsis
This thoroughly updated tutorial for beginning to intermediate programmers covers the latest release of Microsofts popular C# language and the new .NET 3.5 platform for developing Windows and Web applications.
About the Author
Jesse Liberty, "Silverlight Geek", is a Senior Program Manager for Microsoft.
Even before joining Microsoft, Jesse was well known in the industry in part because of his many bestselling books, including O'Reilly Media's Programming .NET 3.5, Programming C# , Learning ASP.NET with AJAX and the soon to be published Programming Silverlight 4. Jesse has over two decades experience writing software, consulting and training, with stints as at AT&T as a Distinguished Software Engineer and at Citibank as a Vice President in the Information Division.
Donald Xie is a business analyst with Chevron. He loves programming and has worked as an independent solution consultant for many organizations. He is co-author of several books on general and .NET programming including Pro Visual Studio.NET and Fast Track ADO.NET.
Table of Contents
Preface; C# and .NET; About This Book; What You Need to Use This Book; How This Book Is Organized; Who This Book Is For; Conventions Used in This Book; Support; We'd Like to Hear from You; Using Code Examples; Safari® Books Online; Acknowledgments; Dedications; The C# Language; Chapter 1: C# 3.0 and .NET 3.5; 1.1 The Evolution of C#; 1.2 The C# Language; 1.3 The .NET Platform; Chapter 2: Getting Started: "Hello World"; 2.1 Classes, Objects, and Types; 2.2 Developing "Hello World"; 2.3 Using the Visual Studio 2008 Debugger; Chapter 3: C# Language Fundamentals; 3.1 Types; 3.2 Variables and Constants; 3.3 Whitespace; 3.4 Statements; 3.5 Operators; 3.6 Preprocessor Directives; Chapter 4: Classes and Objects; 4.1 Defining Classes; 4.2 Creating Objects; 4.3 Using Static Members; 4.4 Destroying Objects; 4.5 Passing Parameters; 4.6 Overloading Methods and Constructors; 4.7 Encapsulating Data with Properties; 4.8 Automatic Properties; 4.9 readonly Fields; Chapter 5: Inheritance and Polymorphism; 5.1 Specialization and Generalization; 5.2 Inheritance; 5.3 Polymorphism; 5.4 Abstract Classes; 5.5 The Root of All Types: Object; 5.6 Nesting Classes; Chapter 6: Operator Overloading; 6.1 Using the operator Keyword; 6.2 Supporting Other .NET Languages; 6.3 Creating Useful Operators; 6.4 Logical Pairs; 6.5 The Equality Operator; 6.6 Conversion Operators; 6.7 Putting Operators to Work; Chapter 7: Structs; 7.1 Defining Structs; 7.2 Creating Structs; Chapter 8: Interfaces; 8.1 Defining and Implementing an Interface; 8.2 Overriding Interface Implementations; 8.3 Explicit Interface Implementation; Chapter 9: Arrays, Indexers, and Collections; 9.1 Arrays; 9.2 The foreach Statement; 9.3 Indexers; 9.4 Collection Interfaces; 9.5 Constraints; 9.6 List
; 9.7 Queues; 9.8 Stacks; 9.9 Dictionaries; Chapter 10: Strings and Regular Expressions; 10.1 Strings; 10.2 Regular Expressions; Chapter 11: Exceptions; 11.1 Throwing and Catching Exceptions; 11.2 Exception Objects; Chapter 12: Delegates and Events; 12.1 Events; 12.2 Events and Delegates; 12.3 Anonymous Methods; C# and Data; Chapter 13: Introducing LINQ; 13.1 Defining and Executing a Query; 13.2 LINQ and C#; 13.3 Anonymous Types; 13.4 Implicitly Typed Local Variables; 13.5 Extension Methods; 13.6 Lambda Expressions in LINQ; Chapter 14: Working with XML; 14.1 XML Basics (A Quick Review); 14.2 X Stands for eXtensible; 14.3 Creating XML Documents; 14.4 Searching in XML with XPath; 14.5 Searching Using XPathNavigator; 14.6 XML Serialization; Chapter 15: Putting LINQ to Work; 15.1 Getting Set Up; 15.2 LINQ to SQL Fundamentals; 15.3 Using Visual Studio LINQ to SQL Designer; 15.4 Retrieving Data; 15.5 Updating Data Using LINQ to SQL; 15.6 Deleting Relational Data; 15.7 LINQ to XML; Chapter 16: ADO.NET and Relational Databases; 16.1 Relational Databases and SQL; 16.2 The ADO.NET Object Model; 16.3 Getting Started with ADO.NET; Programming with C#; Chapter 17: Programming ASP.NET Applications; 17.1 Web Forms Fundamentals; 17.2 Creating a Web Form; 17.3 Data Binding; Chapter 18: WPF Applications; 18.1 WPF in a Very Small Nutshell; 18.2 Creating a WPF Example; 18.3 Event Handling (Finally!); 18.4 What Have You Learned, Dorothy?; Chapter 19: Programming Windows Forms Applications; 19.1 Creating the Application; The CLR and the .NET Framework; Chapter 20: Attributes and Reflection; 20.1 Attributes; 20.2 Reflection; Chapter 21: Threads and Synchronization; 21.1 Threads; 21.2 Synchronization; 21.3 Race Conditions and Deadlocks; Chapter 22: Streams; 22.1 Files and Directories; 22.2 Reading and Writing Data; 22.3 Asynchronous I/O; 22.4 Network I/O; 22.5 Web Streams; 22.6 Serialization; 22.7 Isolated Storage; Chapter 23: Programming .NET and COM; 23.1 Importing ActiveX Controls; 23.2 Pointers; C# Keywords; Colophon;