C# Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 3.2

Data Type Features

This chapter provides tutorial examples and notes on some data type features. Topics include 'decimal' simple type; simple types as aliases of 'struct' types; unified type system; jagged arrays.

The "decimal" Data Type

Simple Types Are "struct" Types

Type System Unification

Jagged Arrays

Conclusions:

  • "decimal" is a simple type for floating-point values with a 128-bit storage size.
  • All simple typs are aliases of pre-defined "struct" types with properties and methods.
  • C# has a unified type system with all types derived from "object".
  • Jagged arrays contain arrays as elements.

Table of Contents

 About This Book

 Introduction of C# (C Sharp)

 Data Type and Variables

 Logical Expressions and Conditional Statements

 Arrays and Loop Statements

Data Type Features

 Floating-Point Data Types

 Passing Parameters to Methods

 Execution Environment Class

 Visual C# 2010 Express Edition

 Class Features

 C# Compiler and Intermediate Language

 Compiling C# Source Code Files

 Memory Usages of Processes

 Multithreading in C#

 System.IO.FileInfo Class

 System.Diagnostics.FileVersionInfo Class

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2012
Data Type Features