首页 > 解决方案 > 是什么让类型成为原始类型?

问题描述

有些类型是原始的。我可以看到简单类型中哪些类型是原始类型,哪些不是 MSDN 文档中的定义。

除了在那个列表中之外,原始类型有什么特别之处?

| Type           | IsPrimitive | IsValueType |
|----------------|-------------|-------------| 
| System.Boolean | True        | True        |
| System.Byte    | True        | True        |
| System.Char    | True        | True        |
| System.Decimal | False       | True        |
| System.Double  | True        | True        |
| System.Single  | True        | True        |
| System.Int32   | True        | True        |
| System.Int64   | True        | True        |
| System.SByte   | True        | True        |
| System.UInt32  | True        | True        |
| System.UInt64  | True        | True        |
| System.UInt16  | True        | True        |
| System.String  | False       | False       |
| System.Object  | False       | False       |

标签: c#.netclr

解决方案


推荐阅读