PrimitiveTypeCode 枚举
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定常数,用于定义元数据签名中找到的基元类型。
public enum class PrimitiveTypeCode
C#
public enum PrimitiveTypeCode
type PrimitiveTypeCode =
Public Enum PrimitiveTypeCode
- 继承
名称 | 值 | 说明 |
---|---|---|
Boolean | 2 | Boolean 类型。 |
Byte | 5 | Byte 类型。 |
Char | 3 | Char 类型。 |
Double | 13 | Double 类型。 |
Int16 | 6 | Int16 类型。 |
Int32 | 8 | Int32 类型。 |
Int64 | 10 | Int64 类型。 |
IntPtr | 24 | IntPtr 类型。 |
Object | 28 | Object 类型。 |
SByte | 4 | SByte 类型。 |
Single | 12 | Single 类型。 |
String | 14 | String 类型。 |
TypedReference | 22 | 类型化的引用。 |
UInt16 | 7 | UInt16 类型。 |
UInt32 | 9 | UInt32 类型。 |
UInt64 | 11 | UInt64 类型。 |
UIntPtr | 25 | UIntPtr 类型。 |
Void | 1 | Void 类型。 |
产品 | 版本 |
---|---|
.NET | Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 |