日期:2014-05-18  浏览次数:20690 次

C#语言学习笔记

1. 值类型

C#的值类型可以分为以下几种:

?简单类型Simple types

?结构类型Struct types
?枚举类型Enumeration types

?1.1.1 整数类型

?

数据类型 说明 取值范围 类结构
?sbyte ?有符号8位整数 -128~127 ?SByte
?byte ?无符号8位整数 0~255 ?Byte
?short ?有符号16位整数 ?-32768~32767 ?Int16
?ushort