Chapter 2. Learning About .NET Number and Value Types

In the previous chapter, you learned how to use Visual C# Express, and what .NET is in terms of the CIL and CLR. In this chapter, we are going to roll up our sleeves and begin writing real C# code, specifically a calculator.

A calculator is an ideal example to start with, because it allows you to focus on the application without having to deal with all of the nasty details that are normally associated with programs. In a programming language like C#, adding two numbers is trivial. What is not trivial is how to put the operation of adding two numbers into a program.

This chapter focuses on the mechanics of writing a program in C#taking an idea and converting it into a C# program that can execute ...

Get Beginning C# 2008: From Novice to Professional now with the O’Reilly learning platform.

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