CHAPTER 1

images

Reintroducing C#:-A Detailed Look at the Language We All Know

This chapter will discuss the basics of the C# language. It begins with an example of a square number generator program to explain the basic structure of a C# program, how the C# compiles a C# program, and then explains Just-in-Time compilation. You will learn about the lexical element of the C# language, different types such as value and reference types, variables, parameters, and statements, and about the interface, enum, and delegate classes.

Square Number Using the C#

Listing 1-1 shows a simple program that calculates the square of a given number and displays the squared ...

Get Expert C# 5.0: with the .NET 4.5 Framework now with O’Reilly online learning.

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