Chapter 5. Data Types
This chapter discusses the data types provided by C#. Although C# maintains strong parallels with the data types offered by Java, the designers of C# have also drawn heavily on the features of C and C++. For the Java programmer, C# data types include many subtle and confusing differences as well as some new features to learn.
We begin with a broad discussion of the unified type system provided by the Microsoft .NET Framework and the fundamental division of data types into value and reference types. We then cover each of the data types in detail, describing how and when each type can be used and the functionality it provides. Next we detail each of the member types that can be used within interfaces, classes, and structs. Many ...
Get C# for Java Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.