一个值类型或是结构类型,或是枚举类型。C# 提供称为简单类型的预定义结构类型集。简单类型通过保留字标识。
value-type:(值类型:)
struct-type(结构类型)
enum-type(枚举类型)
struct-type:(结构类型:)
type-name(类型名称)
simple-type(简单类型)
simple-type:(简单类型:)
numeric-type(数值类型)
bool
numeric-type:(数值类型:)
integral-type(整型)
floating-point-type(浮点类型)
decimal
integral-type:(整型:)
sbyte
byte
short
ushort
int
uint
long
ulong
char
floating-point-type:(浮点类型:)
float
double
enum-type:(枚举类型:)
type-name(类型名)
** 值类型的变量总是包含该类型的值。与引用类型不同,值类型的值不可能为 null,也不可能引用派生程度较大的类型的对象。
值类型的变量赋值会创建所赋的值的一个副本。这不同于引用类型的变量赋值,引用类型的变量赋值复制的是引用而不是由引用标识的对象。**