Part 1. Preparing for the journey

Every reader will come to this book with a different set of expectations and a different level of experience. Are you an expert looking to fill some holes, however small, in your present knowledge? Perhaps you consider yourself an “average” developer, beginning to migrate projects to .NET 2.0 but with an eye to the future. Maybe you’re reasonably confident with C# 2 but have no C# 3 experience.

As an author, I can’t make every reader the same—and I wouldn’t want to even if I could. I hope that all readers have two things in common, however: the desire for a deeper relationship with C# as a language, and at least a basic knowledge of C# 1. If you can bring those elements to the party, I’ll provide the rest.

The potentially huge range of skill levels is the main reason for this part of the book existing. You may already know what to expect from C# 2 and 3—or it could all be brand new to you. You could have a rock-solid understanding of C# 1, or you might be rusty on some of the details that didn’t matter much before but that will become increasingly important as you learn C# 2 and then 3. By the end of part 1, I won’t have leveled the playing field entirely, but you should be able to approach the rest of the book with confidence and an idea of what’s coming later.

For the first two chapters, we will be looking both forward and back. One of the key themes of the book is evolution. Before introducing any feature into the language, the design team carefully considers that feature in the context of what’s already present and the general aims of the future. This brings a feeling of consistency to the language even in the midst of change. To understand how and why the language is evolving, we need to see where we’ve come from and where we’re going to.

Chapter 1 presents a bird’s-eye view of the rest of the book, taking a brief look at some of the biggest features of both C# 2 and C# 3 and showing a progression of code from C# 1 onward. To bring more perspective and context to the new features, we’ll also take a look at nearly 12 years of development history, from the first release of Java in January 1996 to the birth of C# 3 and .NET 3.5 in November 2007.

Chapter 2 is heavily focused on C# 1. If you’re an expert in C# 1 you can skip this chapter, but it does tackle some of the areas of C# 1 that tend to be misunderstood. Rather than try to explain the whole of the language, the chapter concentrates on features that are fundamental to the later versions of C#. From this solid base, we can move on and look at C# 2 in part 2 of this book.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.178.151