Wrox C# 2008 Programmers Reference

Wrox C# 2008 Programmers Reference – Have access to all aspects of the C# programming language at hand withthe C# 2008 Programmer’s Reference, the only comprehensive referenceguide for C# programmers. Regardless of your experience with C#, youwill appreciate the detailed code samples, which offer a quick and easyway to help you refresh your understanding of important concepts. Inthis ideal C# resource, you will find an introduction to the .NETFramework, a guide to using Visual Studio 2008, and explanations ofclasses, objects, types, delegates and events, strings and regularexpressions, and threading.
What This Book Covers
This book is divided into three parts. Part I covers the C# language fundamentals; Part II covers
application development using C#, and Part III provides three appendices that cover the list of
C# keywords, the .NET class libraries, and document generation using the Sandcastle utility.
Introduction
xxvi
Part I: C# Fundamentals
Chapter 1 introduces the .NET Framework. It examines the key components in the .NET
Framework as well as the role played by each of the components. In addition, it discusses the
relationships between the various versions of the framework, from version 1.0 to the latest 3.5.
Chapter 2 covers the use of Microsoft Visual Studio 2008 as the tool for C# development. Visual
Studio 2008 is an extremely versatile and powerful environment for developing .NET
applications. This chapter explores some of the common features that you will likely use in the
process of your development work.
Chapter 3 introduces the syntax of the C# language and covers all the important topics:
C# keywords, variables, constants, comments, XML documentation, data types, flow control,
loops, operators, and preprocessor directives.
Chapter 4 tackles one of the most important topics in C# programming ¡ª classes and objects.
Classes are essentially templates in from which you create objects. In C# .NET programming,
everything you deal with involves classes and objects. This chapter provides a firm foundation
in the use and creation of classes for code reuse.
Chapter 5 explains how interfaces can be used to define the contract for a class. It also discusses
difference between an interface and an abstract class.
Chapter 6 looks at how inheritance facilitates code reuse, enabling you to extend the
functionality of code that you have already written. This book explains the different types of
inheritance and how to define overloaded methods and operators.
Chapter 7 introduces the concept of delegates and events used in object oriented programming,
and discusses what a delegate is and how delegates are used to implement events.
Chapter 8 examines strings handling in C# and the various ways to manipulate them. For more
complex strings pattern matching, you can use regular expressions. This chapter also covers the
various ways to format your strings data.
Chapter 9 looks into the basics of generics and how you can use them to enhance efficiency and
type safety in your applications. Generics enable developers to define type – safe data structures
without binding to specific fixed data types at design time.
Chapter 10 explains how to write multithreaded applications using the Thread class in the .NET
Framework. It also shows you how to create and synchronize threads as well as how to write
thread – safe Windows applications.
Chapter 11 delves into the concepts of files and streams in .NET. With streams, you can perform
a wide range of tasks, including compressing and decompressing data, serializing and
deserializing data, and encrypting and decrypting data. This chapter covers the various ways to
manipulate files and the various stream objects in .NET.
Chapter 12 deals with exception handling. An exception is a situation that occurs when your
program encounters an error that it is not expecting during runtime. Understanding how to
handle exceptions makes your program more robust and resilient.
Chapter 13 examines arrays and collections. It discusses the many collection classes that you can
use to represent groups of data in .NET.
Introduction
xxvii
Chapter 14 introduces a new feature in .NET 3.5: Language Integrated Query (LINQ). It covers
all the important implementations of LINQ ¡ª LINQ to Objects, LINQ to XML, LINQ to Dataset,
and LINQ to SQL.
Chapter 15 explores the concept of assemblies. In .NET, the basic unit deployable is called an
assembly. Assemblies play an important part of the development process where understanding
how they work is useful in helping you develop scalable and efficient .NET applications.
Part II: Application Development Using C#
Chapter 16 demonstrates how you can build a Windows application using the C# language. The
sample application illustrates how to perform FTP using the classes available in the .NET
Framework. You will also see how to perform printing in a.NET application and how to deploy
Windows applications using the ClickOnce technology.
Chapter 17 takes you through building an ASP.NET web application in C#. You perform data
binding using the new LinqDataSource control and see how to AJAX – enable your web pages.
Chapter 18 illustrates Windows Mobile development using the .NET Compact Framework, a
subset of the .NET Framework. It examines the basics of the Windows Mobile development and
builds a sample RSS reader application. Finally, it shows you how to create a professional setup
package for your application so that it can be distributed to your readers for installation.
Chapter 19 helps you get started with Silverlight and provides an opportunity for you to get a
feel for Silverlight development works. It covers Silverlight 1.0 and 2, and contains several
examples showing the capabilities of Silverlight, including animation, media, and .NET
integration.
Chapter 20 provides a quick introduction to the new Windows Communication Foundation
(WCF) technology and shows how it addresses some of the limitations of today ¡¯ s web services
technology. While most books and conferences focus heavily on the theory behind WCF, this
chapter shows you how to build WCF services and then explains the theory behind them. It
ends with an example that creates a ticketing application, allowing multiple clients to obtain
updated seat information in real time.
Download Links



