This book is divided into six sections, as
Introduction: which you're reading at the moment.
The C# Language: which covers all aspects of the C# language, from the fundamentals to object- oriented techniques.
Web Programming: this section describes Web application development, Web services, and Web application deployment.
Data Access: which looks at using data in your applications, including data stored in files on your hard disk, data stored in XML format, and data in databases.
Additional Techniques: this section examines some extra ways of using C# and the .NET Framework, including assemblies, attributes, XML documentation, networking, and graphics programming with GDI+.
The following sections describe the chapters in the five major sections of this book.
Chapter 1 introduces you to C# and how it fits into the .NET landscape. You'll learn the fundamentals of programming in this environment, and how VS fits in.
Chapter 2 starts you off with writing C# applications in VS. You'll look at the syntax of C# and put the language to use with sample command line and Windows applications. These examples will show you just how quick and easy it can be to get up and running, and along the way you'll be introduced to the VS development environment and the basic windows and tools that you'll be using throughout the book.
Next you'll learn more about the basics of the C# language. You'll learn what
By the start of Chapter 7 you'll have a handle on the fundamentals of the C# language, and will focus on debugging your applications. This involves looking at outputting trace information as your applications are executed, and at how VS can be used to trap errors and lead you to solutions for them with its powerful debugging environment.
From
Chapter 8
onward you'll learn about Object-Oriented Programming (OOP), starting with a look at what this
All this changes in
Chapter 9,
when you put theory into practice and start using OOP in your C# applications. This is where the true power of C# lies. You'll start by looking at how to define classes and interfaces, then move on to class
Once you've leaned how OOP works in C#, you'll move on in Chapter 11 to look at common OOP scenarios, including dealing with collections of objects, and comparing and converting objects. Chapter 12 then moves on to look at a new and very useful feature of C# in .NET 2.0: generics, which allows you to create very flexible classes. Finally Chapter 13 rounds off the discussion of the C# language and OOP with some additional techniques, and notable events, which become very important in, for example, Windows programming.
Chapter 14
starts by introducing you to what is
Chapter 16 looks at some commonly used features that can add specialized features with ease, such as file management, printing, and so on. Chapter 17 then discusses deploying your applications, including making installation programs to enable your users to get up and running with your applications in double-quick time.
This section is structured in a similar way to the Windows programming section. It starts with
Chapter 18
describing the controls that make up the simplest of Web applications, and how you can fit them together and make them perform
Chapter 20 is an excursion into the wonderful world of Web services, which are set to revolutionize the way people use the Internet. Web services enable you to expose complex data and functionality to Web and windows applications in a platform-independent way. This chapter discusses how to use and create Web services, and the additional tools that .NET provides, including security.
Finally, Chapter 21 examines the deployment of Web applications and services, in particular the new features of VS that enable you to publish applications to the Web with the click of a button.
Chapter 22 looks at how your applications can save and retrieve data to disk, both as simple text files and as more complex representations of data. You'll also see how to compress data, how to work with legacy data such as comma separated value (CSV) files, and how to monitor and act on file system changes.
In
Chapter 23
you'll learn about what is fast becoming the de-facto standard for data exchange, namely XML. You'll have touched on XML at several times in
Chapter 25
will then show you some
In the last section of the book you'll look at a wide variety of additional C# and .NET subjects. In
Chapter 26
you'll learn more about .NET assemblies, the basic building blocks of all sorts of .NET applications. In
Chapter 27
you'll look at attributes, a powerful way to both include additional information about types in assemblies, and add functionality that would
Chapter 28 deals with XML documentation and how you can document your applications at the source code level. You'll see how to add this information and how to use and extract it. You'll take this to the point where you'll be able to generate expansive MSDN-style documentation from your code.
Next you'll look at networking in Chapter 29, and how your applications can communicate with each other and with other services across various types of networks. Finally, Chapter 30 comes almost as a bit of light relief from many of the involved techniques you'll have seen earlier in the book by covering the subject of graphics programming with GDI+. You'll learn how to manipulate graphics and style your applications, opening the door to a vast array of C# applications and having a bit of fun along the way.