Have access to all aspects of the C# programming language at hand with the C# 2008 Programmer’s Reference , the only comprehensive reference guide for C# programmers. Regardless of your experience with C#, you will appreciate the detailed code samples, which offer a quick and easy way to help you refresh your understanding of important concepts. In this ideal C# resource, you will find an introduction to the .NET Framework, a guide to using Visual Studio 2008, and explanations of classes, objects, types, delegates and events, strings and regular expressions, and threading. C# 2008 -1 Cover 1 About the Author 11 About the Technical Editor 11 Credits 13 Acknowledgments 15 Contents 17 Introduction 27 Who This Book Is For 27 What This Book Covers 27 What You Need to Use This Book 30 Conventions 31 Source Code 31 Errata 31 p2p. wrox. com 32 Part I: C# Fundamentals 33 Chapter 1: The .NET Framework 35 What’s the .NET Framework? 35 Assemblies and the Microsoft Intermediate Language (MSIL) 38 Versions of the .NET Framework and Visual Studio 40 Summary 41 Chapter 2: Getting Started with Visual Studio 2008 43 Visual Studio 2008 Overview 43 Code and Text Editor 66 Debugging 81 Unit Testing 85 Summary 91 Chapter 3: C# Language Foundations 93 Using Visual Studio 2008 93 Using the C# Compiler (csc. exe) 96 Dissecting the Program 98 Language Syntax 100 Data Types 110 Flow Control 124 Looping 128 Operators 134 Preprocessor Directives 142 Summary 155 Chapter 4: Classes and Objects 157 Classes 157 System.Object Class 189 Structures 197 Summary 201 Chapter 5: Interfaces 203 Defining an Interface 204 Implementing an Interface 205 Implementing Multiple Interfaces 206 Extending Interfaces 207 Interface Casting 209 The is and as Operators 210 Overriding Interface Implementations 211 Summary 213 Chapter 6: Inheritance 215 Understanding Inheritance in C# 215 Implementation Inheritance 216 Interface Inheritance 236 Explicit Interface Members Implementation 240 Summary 243 Chapter 7: Delegates and Events 245 Delegates 245 Events 258 Summary 272 Chapter 8: Strings and Regular Expressions 273 The System.String Class 273 Regular Expressions 291 Summary 295 Chapter 9: Generics 297 Understanding Generics 297 Generics and the .NET Framework Class Library 312 Using the LinkedList Generic Class 316 System.Collections.ObjectModel 320 Summary 323 Chapter 10: Threading 325 The Need for Multithreading 325 Thread Synchronization 335 Thread Safety in Windows Forms 344 Summary 352 Chapter 11: Files and Streams 353 Working with Files and Directories 353 The Stream Class 363 Cryptography 375 Compressions for Stream Objects 385 Serialization 391 Summary 407 Chapter 12: Exception Handling 409 Handling Exceptions 409 Creating Custom Exceptions 425 Summary 427 Chapter 13: Arrays and Collections 429 Arrays 429 Collections Interfaces 436 Summary 456 Chapter 14: Language Integrated Query (LINQ) 457 LINQ Architecture 457 LINQ to Objects 458 LINQ to DataSet 470 LINQ to XML 482 LINQ to SQL 490 Summary 497 Chapter 15: Assemblies and Versioning 499 Assemblies 499 Private versus Shared Assemblies 518 Summary 531 Part II: Application Development Using C# 533 Chapter 16: Developing Windows Applications 535 The Project 535 Adding Print Capability 558 Deploying the Application 565 Summary 575 Chapter 17: Developing ASP.NET Web Applications 577 About ASP.NET 577 Data Binding 579 Building Responsive Applications Using AJAX 592 Summary 604 Chapter 18: Developing Windows Mobile Applications 605 The Windows Mobile Platform 606 Developing Windows Mobile Applications Using the .NET Compact Framework 608 Obtaining the Appropriate SDKs and Tools 610 Building the RSS Reader Application 612 Deploying the Application 630 Summary 648 Chapter 19: Developing Silverlight Applications 649 The State of Silverlight 649 Building a Silverlight UI Using XAML 653 Silverlight 1.0 677 Silverlight 2.0 707 Summary 726 Chapter 20: Windows Communication Foundation 727 What Is WCF ? 727 Understanding How WCF Works 742 Building WCF Services 746 Summary 777 Part III: Appendixes 779 Appendix A: C# Keywords 781 C# Reserved Keywords 782 Contextual Keywords 786 Appendix B: Examining the .Net Class Libraries Using the Object Browser 789 Versions of the .NET Framework 789 Using the Object Browser 791 Appendix C: Generating Documentation for Your C# Applications 797 Inline Documentation using XML 797 Generating the Documentation 805 Index 813 Lets you have access to various aspects of the C# programming language at hand. This title features detailed code samples, which offer a quick and easy way to help you refresh your understanding of important concepts.