O'Reilly logo

C# Primer Plus by Klaus Michelsen

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

Summary

This chapter presented you with another C# source code example with the ability to perform simple calculations. Many essential constructs and concepts were extracted from this program to extend the knowledge you gained from the previous chapter.

The following are the important elements covered in this chapter:

A variable of type int can be used to store whole numbers and can take part in standard arithmetic calculations.

Namespaces help programmers keep their classes organized and accessible to other programmers for reuse purposes.

The System namespace in the .NET Framework class library contains many fundamental classes.

Use comments to describe the overall intent of the source code instead of merely restating what the code does.

A ...

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