C#的数据类型分为值类型(Value Type)、引用类型(Reference Type)和指针类型(Pointer Type)三大类。值类型包括简单类型(Simple Type)、结构类型(Struct Type)和枚举类型(Enum Type)。引用类型包括类类型(Class Type)、接口类型(Interface Type)、委托类型(Delegate Type)和数组类型(Array Type).指针类型只能用于不安全模式。