C# .NET Web Developer's Guide

Let s start with your first look into the C# language. This chapter teaches you to write, build, and execute console applications. This provides the groundwork for developing applications that use more advanced features of .NET in later chapters.
The C# language is a modern object-oriented language. In some ways, it can be seen as an extension of other languages that came before it. C# is most often compared with Java and C++. If you are not familiar with C# programming, this chapter gets you started. If you are familiar with Java or C++, you may want to just skim this chapter because the concepts presented will look very familiar to you. If you already know C#, feel free to skip this chapter entirely. We assume you have a basic understanding of at least one object-oriented language.
We ve mentioned that C# is a modern object-oriented language. Let s take a little time to explain what we mean by that. C# is a modern language. It supports the notion of data types, flow of control statements, operators, arrays, properties, and exceptions. Depending on the language(s) you are accustomed to programming in, most of these concepts should be familiar to you. Throughout the chapter, you will see examples and/or discussions of most of these features of C#.
C# is an object-oriented language. It supports the notion of classes and the object-oriented nature of classes including encapsulation, inheritance, and polymorphism. C# also supports interfaces in conjunction with the .NET Common Language Runtime (CLR) garbage...