C#類型分三類:數組
1.值類型安全
值類型主要有 int(整型),bool(bool型),float(單精度浮點數),double(雙精度浮點數),char(字符串類型),struct(結構體),enum(枚舉),sbyte,byte,short,ushort,uint,long,ulongide
2.引用類型ui
引用類型主要有 string(字符串),object(對象),list(集合),class(類),interface(接口),array(數組),delegate(委託)spa
3.指針類型3d
在不安全的上下文中,類型能夠是指針類型、值類型或引用類型。 指針類型聲明採用下列形式之一:指針
type* identifier; void* identifier; //allowed but not recommended
如下任一類型都可爲指針類型:code
sbyte、byte、short、ushort、int、uint、long、ulong、char、float、double、decimal 或 bool。orm