Chapter 2. Data Types

From chapter's 1's HelloWorld program, you got a feel for the C# language, its structure, basic syntax characteristics, and how to write the simplest of programs. This chapter continues to discuss the C# basics by investigating the fundamental C# types.

Until now, you have worked with only a few primitive data types, with little explanation. In C#, thousands of types exist, and you can combine types to create new types. A few types in C#, however, are relatively simple and are considered the building blocks of all other types. These types are predefined types or primitives. The C# language's primitive types include eight integer types, two floating-point types, a high-precision type, one Boolean type, and a character type. This chapter investigates these primitives, looks more closely at the string type, and introduces arrays.

Essential C# 2.0
Essential C# 2.0
ISBN: 0321150775
EAN: 2147483647
Year: 2007
Pages: 185 © 2008-2017.
If you may any questions please contact us: