O'Reilly logo

Beginning C# 2008: From Novice to Professional by Christian Gross

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required