Chapter 2. C# Building Blocks

In the previous chapter you got a taste for how to run Visual Studio .NET, and how to enter some code and execute it. In this chapter you’re going to start learning how to write C# code. In order to write code it’s essential to learn a few of the basics. We’ll start by learning how to declare variables and functions, and then we’ll proceed to combining those variables and functions into classes. A class is a group of code that serves as a blueprint; the blueprint is used to create objects.

Working with C# Building Blocks

One way to learn the concepts in this chapter is to put them into practice. For that reason I will start a sample project at the beginning of each chapter. Some of the topics in the chapter show code ...

Get C# Web Development with ASP.NET: Visual QuickStart Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.